<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Para-Didi example</title>
        <style>
            /* BEGIN /Users/cyrus/anaconda/lib/python2.7/site-packages/bokeh/server/static/css/bokeh.min.css */
            /*!
             * Bootstrap v2.0.4
             *
             * Copyright 2012 Twitter, Inc
             * Licensed under the Apache License v2.0
             * http://www.apache.org/licenses/LICENSE-2.0
             *
             * Designed and built with all the love in the world @twitter by @mdo and @fat.
             */.bokeh article,.bokeh aside,.bokeh details,.bokeh figcaption,.bokeh figure,.bokeh footer,.bokeh header,.bokeh hgroup,.bokeh nav,.bokeh section{display:block}.bokeh audio,.bokeh canvas,.bokeh video{display:inline-block}.bokeh audio:not([controls]){display:none}.bokeh html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}.bokeh a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.bokeh a:hover,.bokeh a:active{outline:0}.bokeh sub,.bokeh sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}.bokeh sup{top:-.5em}.bokeh sub{bottom:-.25em}.bokeh img{max-width:100%;vertical-align:middle;border:0;-ms-interpolation-mode:bicubic}.bokeh #map_canvas img{max-width:none}.bokeh button,.bokeh input,.bokeh select,.bokeh textarea{margin:0;font-size:100%;vertical-align:middle}.bokeh button,.bokeh input{line-height:normal}.bokeh button::-moz-focus-inner,.bokeh input::-moz-focus-inner{padding:0;border:0}.bokeh button,.bokeh input[type=button],.bokeh input[type=reset],.bokeh input[type=submit]{cursor:pointer;-webkit-appearance:button}.bokeh input[type=search]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}.bokeh input[type=search]::-webkit-search-decoration,.bokeh input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}.bokeh textarea{overflow:auto;vertical-align:top}.bokeh .clearfix{}.bokeh .clearfix:before,.bokeh .clearfix:after{display:table;content:""}.bokeh .clearfix:after{clear:both}.bokeh .hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.bokeh .input-block-level{display:block;width:100%;min-height:28px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.bokeh body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;line-height:18px;color:#333;background-color:#fff}.bokeh a{color:#08c;text-decoration:none}.bokeh a:hover{color:#005580;text-decoration:underline}.bokeh .row{margin-left:-20px}.bokeh .row:before,.bokeh .row:after{display:table;content:""}.bokeh .row:after{clear:both}.bokeh [class*=span]{float:left;margin-left:20px}.bokeh .container,.bokeh .navbar-fixed-top .container,.bokeh .navbar-fixed-bottom .container{width:940px}.bokeh .span12{width:940px}.bokeh .span11{width:860px}.bokeh .span10{width:780px}.bokeh .span9{width:700px}.bokeh .span8{width:620px}.bokeh .span7{width:540px}.bokeh .span6{width:460px}.bokeh .span5{width:380px}.bokeh .span4{width:300px}.bokeh .span3{width:220px}.bokeh .span2{width:140px}.bokeh .span1{width:60px}.bokeh .offset12{margin-left:980px}.bokeh .offset11{margin-left:900px}.bokeh .offset10{margin-left:820px}.bokeh .offset9{margin-left:740px}.bokeh .offset8{margin-left:660px}.bokeh .offset7{margin-left:580px}.bokeh .offset6{margin-left:500px}.bokeh .offset5{margin-left:420px}.bokeh .offset4{margin-left:340px}.bokeh .offset3{margin-left:260px}.bokeh .offset2{margin-left:180px}.bokeh .offset1{margin-left:100px}.bokeh .row-fluid{width:100%}.bokeh .row-fluid:before,.bokeh .row-fluid:after{display:table;content:""}.bokeh .row-fluid:after{clear:both}.bokeh .row-fluid [class*=span]{display:block;float:left;width:100%;min-height:28px;margin-left:2.127659574%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.bokeh .row-fluid [class*=span]:first-child{margin-left:0}.bokeh .row-fluid .span12{width:99.99999998999999%}.bokeh .row-fluid .span11{width:91.489361693%}.bokeh .row-fluid .span10{width:82.97872339599999%}.bokeh .row-fluid .span9{width:74.468085099%}.bokeh .row-fluid .span8{width:65.95744680199999%}.bokeh .row-fluid .span7{width:57.446808505%}.bokeh .row-fluid .span6{width:48.93617020799999%}.bokeh .row-fluid .span5{width:40.425531911%}.bokeh .row-fluid .span4{width:31.914893614%}.bokeh .row-fluid .span3{width:23.404255317%}.bokeh .row-fluid .span2{width:14.89361702%}.bokeh .row-fluid .span1{width:6.382978723%}.bokeh .container{margin-right:auto;margin-left:auto}.bokeh .container:before,.bokeh .container:after{display:table;content:""}.bokeh .container:after{clear:both}.bokeh .container-fluid{padding-right:20px;padding-left:20px}.bokeh .container-fluid:before,.bokeh .container-fluid:after{display:table;content:""}.bokeh .container-fluid:after{clear:both}.bokeh p{margin:0 0 9px}.bokeh p small{font-size:11px;color:#999}.bokeh .lead{margin-bottom:18px;font-size:20px;font-weight:200;line-height:27px}.bokeh h1,.bokeh h2,.bokeh h3,.bokeh h4,.bokeh h5,.bokeh h6{margin:0;font-family:inherit;font-weight:700;color:inherit;text-rendering:optimizelegibility}.bokeh h1 small,.bokeh h2 small,.bokeh h3 small,.bokeh h4 small,.bokeh h5 small,.bokeh h6 small{font-weight:400;color:#999}.bokeh h1{font-size:30px;line-height:36px}.bokeh h1 small{font-size:18px}.bokeh h2{font-size:24px;line-height:36px}.bokeh h2 small{font-size:18px}.bokeh h3{font-size:18px;line-height:27px}.bokeh h3 small{font-size:14px}.bokeh h4,.bokeh h5,.bokeh h6{line-height:18px}.bokeh h4{font-size:14px}.bokeh h4 small{font-size:12px}.bokeh h5{font-size:12px}.bokeh h6{font-size:11px;color:#999;text-transform:uppercase}.bokeh .page-header{padding-bottom:17px;margin:18px 0;border-bottom:1px solid #eee}.bokeh .page-header h1{line-height:1}.bokeh ul,.bokeh ol{padding:0;margin:0 0 9px 25px}.bokeh ul ul,.bokeh ul ol,.bokeh ol ol,.bokeh ol ul{margin-bottom:0}.bokeh ul{list-style:disc}.bokeh ol{list-style:decimal}.bokeh li{line-height:18px}.bokeh ul.unstyled,.bokeh ol.unstyled{margin-left:0;list-style:none}.bokeh dl{margin-bottom:18px}.bokeh dt,.bokeh dd{line-height:18px}.bokeh dt{font-weight:700;line-height:17px}.bokeh dd{margin-left:9px}.bokeh .dl-horizontal dt{float:left;width:120px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.bokeh .dl-horizontal dd{margin-left:130px}.bokeh hr{margin:18px 0;border:0;border-top:1px solid #eee;border-bottom:1px solid #fff}.bokeh strong{font-weight:700}.bokeh em{font-style:italic}.bokeh .muted{color:#999}.bokeh abbr[title]{cursor:help;border-bottom:1px dotted #999}.bokeh abbr.initialism{font-size:90%;text-transform:uppercase}.bokeh blockquote{padding:0 0 0 15px;margin:0 0 18px;border-left:5px solid #eee}.bokeh blockquote p{margin-bottom:0;font-size:16px;font-weight:300;line-height:22.5px}.bokeh blockquote small{display:block;line-height:18px;color:#999}.bokeh blockquote small:before{content:'\2014 \00A0'}.bokeh blockquote.pull-right{float:right;padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0}.bokeh blockquote.pull-right p,.bokeh blockquote.pull-right small{text-align:right}.bokeh q:before,.bokeh q:after,.bokeh blockquote:before,.bokeh blockquote:after{content:""}.bokeh address{display:block;margin-bottom:18px;font-style:normal;line-height:18px}.bokeh small{font-size:100%}.bokeh cite{font-style:normal}.bokeh code,.bokeh pre{padding:0 3px 2px;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:12px;color:#333;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.bokeh code{padding:2px 4px;color:#d14;background-color:#f7f7f9;border:1px solid #e1e1e8}.bokeh pre{display:block;padding:8.5px;margin:0 0 9px;font-size:12.025px;line-height:18px;word-break:break-all;word-wrap:break-word;white-space:pre;white-space:pre-wrap;background-color:#f5f5f5;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.bokeh pre.prettyprint{margin-bottom:18px}.bokeh pre code{padding:0;color:inherit;background-color:transparent;border:0}.bokeh .pre-scrollable{max-height:340px;overflow-y:scroll}.bokeh form{margin:0 0 18px}.bokeh fieldset{padding:0;margin:0;border:0}.bokeh legend{display:block;width:100%;padding:0;margin-bottom:27px;font-size:19.5px;line-height:36px;color:#333;border:0;border-bottom:1px solid #e5e5e5}.bokeh legend small{font-size:13.5px;color:#999}.bokeh label,.bokeh input,.bokeh button,.bokeh select,.bokeh textarea{font-size:13px;font-weight:400;line-height:18px}.bokeh input,.bokeh button,.bokeh select,.bokeh textarea{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}.bokeh label{display:block;margin-bottom:5px}.bokeh select,.bokeh textarea,.bokeh input[type=text],.bokeh input[type=password],.bokeh input[type=datetime],.bokeh input[type=datetime-local],.bokeh input[type=date],.bokeh input[type=month],.bokeh input[type=time],.bokeh input[type=week],.bokeh input[type=number],.bokeh input[type=email],.bokeh input[type=url],.bokeh input[type=search],.bokeh input[type=tel],.bokeh input[type=color],.bokeh .uneditable-input{display:inline-block;height:18px;padding:4px;margin-bottom:9px;font-size:13px;line-height:18px;color:#555}.bokeh input,.bokeh textarea{width:210px}.bokeh textarea{height:auto}.bokeh textarea,.bokeh input[type=text],.bokeh input[type=password],.bokeh input[type=datetime],.bokeh input[type=datetime-local],.bokeh input[type=date],.bokeh input[type=month],.bokeh input[type=time],.bokeh input[type=week],.bokeh input[type=number],.bokeh input[type=email],.bokeh input[type=url],.bokeh input[type=search],.bokeh input[type=tel],.bokeh input[type=color],.bokeh .uneditable-input{background-color:#fff;border:1px solid #ccc;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border linear .2s,box-shadow linear .2s;-moz-transition:border linear .2s,box-shadow linear .2s;-ms-transition:border linear .2s,box-shadow linear .2s;-o-transition:border linear .2s,box-shadow linear .2s;transition:border linear .2s,box-shadow linear .2s}.bokeh textarea:focus,.bokeh input[type=text]:focus,.bokeh input[type=password]:focus,.bokeh input[type=datetime]:focus,.bokeh input[type=datetime-local]:focus,.bokeh input[type=date]:focus,.bokeh input[type=month]:focus,.bokeh input[type=time]:focus,.bokeh input[type=week]:focus,.bokeh input[type=number]:focus,.bokeh input[type=email]:focus,.bokeh input[type=url]:focus,.bokeh input[type=search]:focus,.bokeh input[type=tel]:focus,.bokeh input[type=color]:focus,.bokeh .uneditable-input:focus{border-color:rgba(82,168,236,.8);outline:0;outline:thin dotted \9;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(82,168,236,.6);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(82,168,236,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(82,168,236,.6)}.bokeh input[type=radio],.bokeh input[type=checkbox]{margin:3px 0;line-height:normal;cursor:pointer}.bokeh input[type=submit],.bokeh input[type=reset],.bokeh input[type=button],.bokeh input[type=radio],.bokeh input[type=checkbox]{width:auto}.bokeh .uneditable-textarea{width:auto;height:auto}.bokeh select,.bokeh input[type=file]{height:28px;line-height:28px}.bokeh select{width:220px;border:1px solid #bbb}.bokeh select[multiple],.bokeh select[size]{height:auto}.bokeh select:focus,.bokeh input[type=file]:focus,.bokeh input[type=radio]:focus,.bokeh input[type=checkbox]:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.bokeh .radio,.bokeh .checkbox{min-height:18px;padding-left:18px}.bokeh .radio input[type=radio],.bokeh .checkbox input[type=checkbox]{float:left;margin-left:-18px}.bokeh .controls>.radio:first-child,.bokeh .controls>.checkbox:first-child{padding-top:5px}.bokeh .radio.inline,.bokeh .checkbox.inline{display:inline-block;padding-top:5px;margin-bottom:0;vertical-align:middle}.bokeh .radio.inline+.radio.inline,.bokeh .checkbox.inline+.checkbox.inline{margin-left:10px}.bokeh .input-mini{width:60px}.bokeh .input-small{width:90px}.bokeh .input-medium{width:150px}.bokeh .input-large{width:210px}.bokeh .input-xlarge{width:270px}.bokeh .input-xxlarge{width:530px}.bokeh input[class*=span],.bokeh select[class*=span],.bokeh textarea[class*=span],.bokeh .uneditable-input[class*=span],.bokeh .row-fluid input[class*=span],.bokeh .row-fluid select[class*=span],.bokeh .row-fluid textarea[class*=span],.bokeh .row-fluid .uneditable-input[class*=span]{float:none;margin-left:0}.bokeh .input-append input[class*=span],.bokeh .input-append .uneditable-input[class*=span],.bokeh .input-prepend input[class*=span],.bokeh .input-prepend .uneditable-input[class*=span],.bokeh .row-fluid .input-prepend [class*=span],.bokeh .row-fluid .input-append [class*=span]{display:inline-block}.bokeh input,.bokeh textarea,.bokeh .uneditable-input{margin-left:0}.bokeh input.span12,textarea.span12,.uneditable-input.span12{width:930px}.bokeh input.span11,textarea.span11,.uneditable-input.span11{width:850px}.bokeh input.span10,textarea.span10,.uneditable-input.span10{width:770px}.bokeh input.span9,textarea.span9,.uneditable-input.span9{width:690px}.bokeh input.span8,textarea.span8,.uneditable-input.span8{width:610px}.bokeh input.span7,textarea.span7,.uneditable-input.span7{width:530px}.bokeh input.span6,textarea.span6,.uneditable-input.span6{width:450px}.bokeh input.span5,textarea.span5,.uneditable-input.span5{width:370px}.bokeh input.span4,textarea.span4,.uneditable-input.span4{width:290px}.bokeh input.span3,textarea.span3,.uneditable-input.span3{width:210px}.bokeh input.span2,textarea.span2,.uneditable-input.span2{width:130px}.bokeh input.span1,textarea.span1,.uneditable-input.span1{width:50px}.bokeh input[disabled],.bokeh select[disabled],.bokeh textarea[disabled],.bokeh input[readonly],.bokeh select[readonly],.bokeh textarea[readonly]{cursor:not-allowed;background-color:#eee;border-color:#ddd}.bokeh input[type=radio][disabled],.bokeh input[type=checkbox][disabled],.bokeh input[type=radio][readonly],.bokeh input[type=checkbox][readonly]{background-color:transparent}.bokeh .control-group.warning>label,.bokeh .control-group.warning .help-block,.bokeh .control-group.warning .help-inline{color:#c09853}.bokeh .control-group.warning .checkbox,.bokeh .control-group.warning .radio,.bokeh .control-group.warning input,.bokeh .control-group.warning select,.bokeh .control-group.warning textarea{color:#c09853;border-color:#c09853}.bokeh .control-group.warning .checkbox:focus,.bokeh .control-group.warning .radio:focus,.bokeh .control-group.warning input:focus,.bokeh .control-group.warning select:focus,.bokeh .control-group.warning textarea:focus{border-color:#a47e3c;-webkit-box-shadow:0 0 6px #dbc59e;-moz-box-shadow:0 0 6px #dbc59e;box-shadow:0 0 6px #dbc59e}.bokeh .control-group.warning .input-prepend .add-on,.bokeh .control-group.warning .input-append .add-on{color:#c09853;background-color:#fcf8e3;border-color:#c09853}.bokeh .control-group.error>label,.bokeh .control-group.error .help-block,.bokeh .control-group.error .help-inline{color:#b94a48}.bokeh .control-group.error .checkbox,.bokeh .control-group.error .radio,.bokeh .control-group.error input,.bokeh .control-group.error select,.bokeh .control-group.error textarea{color:#b94a48;border-color:#b94a48}.bokeh .control-group.error .checkbox:focus,.bokeh .control-group.error .radio:focus,.bokeh .control-group.error input:focus,.bokeh .control-group.error select:focus,.bokeh .control-group.error textarea:focus{border-color:#953b39;-webkit-box-shadow:0 0 6px #d59392;-moz-box-shadow:0 0 6px #d59392;box-shadow:0 0 6px #d59392}.bokeh .control-group.error .input-prepend .add-on,.bokeh .control-group.error .input-append .add-on{color:#b94a48;background-color:#f2dede;border-color:#b94a48}.bokeh .control-group.success>label,.bokeh .control-group.success .help-block,.bokeh .control-group.success .help-inline{color:#468847}.bokeh .control-group.success .checkbox,.bokeh .control-group.success .radio,.bokeh .control-group.success input,.bokeh .control-group.success select,.bokeh .control-group.success textarea{color:#468847;border-color:#468847}.bokeh .control-group.success .checkbox:focus,.bokeh .control-group.success .radio:focus,.bokeh .control-group.success input:focus,.bokeh .control-group.success select:focus,.bokeh .control-group.success textarea:focus{border-color:#356635;-webkit-box-shadow:0 0 6px #7aba7b;-moz-box-shadow:0 0 6px #7aba7b;box-shadow:0 0 6px #7aba7b}.bokeh .control-group.success .input-prepend .add-on,.bokeh .control-group.success .input-append .add-on{color:#468847;background-color:#dff0d8;border-color:#468847}.bokeh input:focus:required:invalid,.bokeh textarea:focus:required:invalid,.bokeh select:focus:required:invalid{color:#b94a48;border-color:#ee5f5b}.bokeh input:focus:required:invalid:focus,.bokeh textarea:focus:required:invalid:focus,.bokeh select:focus:required:invalid:focus{border-color:#e9322d;-webkit-box-shadow:0 0 6px #f8b9b7;-moz-box-shadow:0 0 6px #f8b9b7;box-shadow:0 0 6px #f8b9b7}.bokeh .form-actions{padding:17px 20px 18px;margin-top:18px;margin-bottom:18px;background-color:#f5f5f5;border-top:1px solid #e5e5e5}.bokeh .form-actions:before,.bokeh .form-actions:after{display:table;content:""}.bokeh .form-actions:after{clear:both}.bokeh .uneditable-input{overflow:hidden;white-space:nowrap;cursor:not-allowed;background-color:#fff;border-color:#eee;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.025);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.025);box-shadow:inset 0 1px 2px rgba(0,0,0,.025)}.bokeh:-moz-placeholder{color:#999}.bokeh:-ms-input-placeholder{color:#999}.bokeh::-webkit-input-placeholder{color:#999}.bokeh .help-block,.bokeh .help-inline{color:#555}.bokeh .help-block{display:block;margin-bottom:9px}.bokeh .help-inline{display:inline-block;padding-left:5px;vertical-align:middle}.bokeh .input-prepend,.bokeh .input-append{margin-bottom:5px}.bokeh .input-prepend input,.bokeh .input-append input,.bokeh .input-prepend select,.bokeh .input-append select,.bokeh .input-prepend .uneditable-input,.bokeh .input-append .uneditable-input{position:relative;margin-bottom:0;vertical-align:middle;-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}.bokeh .input-prepend input:focus,.bokeh .input-append input:focus,.bokeh .input-prepend select:focus,.bokeh .input-append select:focus,.bokeh .input-prepend .uneditable-input:focus,.bokeh .input-append .uneditable-input:focus{z-index:2}.bokeh .input-prepend .uneditable-input,.bokeh .input-append .uneditable-input{border-left-color:#ccc}.bokeh .input-prepend .add-on,.bokeh .input-append .add-on{display:inline-block;width:auto;height:18px;min-width:16px;padding:4px 5px;font-weight:400;line-height:18px;text-align:center;text-shadow:0 1px 0 #fff;vertical-align:middle;background-color:#eee;border:1px solid #ccc}.bokeh .input-prepend .add-on,.bokeh .input-append .add-on,.bokeh .input-prepend .btn,.bokeh .input-append .btn{margin-left:-1px;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.bokeh .input-prepend .active,.bokeh .input-append .active{background-color:#a9dba9;border-color:#46a546}.bokeh .input-prepend .add-on,.bokeh .input-prepend .btn{margin-right:-1px}.bokeh .input-prepend .add-on:first-child,.bokeh .input-prepend .btn:first-child{-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.bokeh .input-append input,.bokeh .input-append select,.bokeh .input-append .uneditable-input{-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.bokeh .input-append .uneditable-input{border-right-color:#ccc;border-left-color:#eee}.bokeh .input-append .add-on:last-child,.bokeh .input-append .btn:last-child{-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}.bokeh .input-prepend.input-append input,.bokeh .input-prepend.input-append select,.bokeh .input-prepend.input-append .uneditable-input{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.bokeh .input-prepend.input-append .add-on:first-child,.bokeh .input-prepend.input-append .btn:first-child{margin-right:-1px;-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.bokeh .input-prepend.input-append .add-on:last-child,.bokeh .input-prepend.input-append .btn:last-child{margin-left:-1px;-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}.bokeh .search-query{padding-right:14px;padding-right:4px \9;padding-left:14px;padding-left:4px \9;margin-bottom:0;-webkit-border-radius:14px;-moz-border-radius:14px;border-radius:14px}.bokeh .form-search input,.bokeh .form-inline input,.bokeh .form-horizontal input,.bokeh .form-search textarea,.bokeh .form-inline textarea,.bokeh .form-horizontal textarea,.bokeh .form-search select,.bokeh .form-inline select,.bokeh .form-horizontal select,.bokeh .form-search .help-inline,.bokeh .form-inline .help-inline,.bokeh .form-horizontal .help-inline,.bokeh .form-search .uneditable-input,.bokeh .form-inline .uneditable-input,.bokeh .form-horizontal .uneditable-input,.bokeh .form-search .input-prepend,.bokeh .form-inline .input-prepend,.bokeh .form-horizontal .input-prepend,.bokeh .form-search .input-append,.bokeh .form-inline .input-append,.bokeh .form-horizontal .input-append{display:inline-block;margin-bottom:0}.bokeh .form-search .hide,.bokeh .form-inline .hide,.bokeh .form-horizontal .hide{display:none}.bokeh .form-search label,.bokeh .form-inline label{display:inline-block}.bokeh .form-search .input-append,.bokeh .form-inline .input-append,.bokeh .form-search .input-prepend,.bokeh .form-inline .input-prepend{margin-bottom:0}.bokeh .form-search .radio,.bokeh .form-search .checkbox,.bokeh .form-inline .radio,.bokeh .form-inline .checkbox{padding-left:0;margin-bottom:0;vertical-align:middle}.bokeh .form-search .radio input[type=radio],.bokeh .form-search .checkbox input[type=checkbox],.bokeh .form-inline .radio input[type=radio],.bokeh .form-inline .checkbox input[type=checkbox]{float:left;margin-right:3px;margin-left:0}.bokeh .control-group{margin-bottom:9px}.bokeh legend+.control-group{margin-top:18px;-webkit-margin-top-collapse:separate}.bokeh .form-horizontal .control-group{margin-bottom:18px}.bokeh .form-horizontal .control-group:before,.bokeh .form-horizontal .control-group:after{display:table;content:""}.bokeh .form-horizontal .control-group:after{clear:both}.bokeh .form-horizontal .control-label{float:left;width:140px;padding-top:5px;text-align:right}.bokeh .form-horizontal .controls{margin-left:160px}.bokeh .form-horizontal .controls:first-child{}.bokeh .form-horizontal .help-block{margin-top:9px;margin-bottom:0}.bokeh .form-horizontal .form-actions{padding-left:160px}.bokeh table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0}.bokeh .table{width:100%;margin-bottom:18px}.bokeh .table th,.bokeh .table td{padding:8px;line-height:18px;text-align:left;vertical-align:top;border-top:1px solid #ddd}.bokeh .table th{font-weight:700}.bokeh .table thead th{vertical-align:bottom}.bokeh .table caption+thead tr:first-child th,.bokeh .table caption+thead tr:first-child td,.bokeh .table colgroup+thead tr:first-child th,.bokeh .table colgroup+thead tr:first-child td,.bokeh .table thead:first-child tr:first-child th,.bokeh .table thead:first-child tr:first-child td{border-top:0}.bokeh .table tbody+tbody{border-top:2px solid #ddd}.bokeh .table-condensed th,.bokeh .table-condensed td{padding:4px 5px}.bokeh .table-bordered{border:1px solid #ddd;border-collapse:separate;border-left:0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.bokeh .table-bordered th,.bokeh .table-bordered td{border-left:1px solid #ddd}.bokeh .table-bordered caption+thead tr:first-child th,.bokeh .table-bordered caption+tbody tr:first-child th,.bokeh .table-bordered caption+tbody tr:first-child td,.bokeh .table-bordered colgroup+thead tr:first-child th,.bokeh .table-bordered colgroup+tbody tr:first-child th,.bokeh .table-bordered colgroup+tbody tr:first-child td,.bokeh .table-bordered thead:first-child tr:first-child th,.bokeh .table-bordered tbody:first-child tr:first-child th,.bokeh .table-bordered tbody:first-child tr:first-child td{border-top:0}.bokeh .table-bordered thead:first-child tr:first-child th:first-child,.bokeh .table-bordered tbody:first-child tr:first-child td:first-child{-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topleft:4px}.bokeh .table-bordered thead:first-child tr:first-child th:last-child,.bokeh .table-bordered tbody:first-child tr:first-child td:last-child{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-topright:4px}.bokeh .table-bordered thead:last-child tr:last-child th:first-child,.bokeh .table-bordered tbody:last-child tr:last-child td:first-child{-webkit-border-radius:0 0 0 4px;-moz-border-radius:0 0 0 4px;border-radius:0 0 0 4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px}.bokeh .table-bordered thead:last-child tr:last-child th:last-child,.bokeh .table-bordered tbody:last-child tr:last-child td:last-child{-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px}.bokeh .table-striped tbody tr:nth-child(odd) td,.bokeh .table-striped tbody tr:nth-child(odd) th{background-color:#f9f9f9}.bokeh .table tbody tr:hover td,.bokeh .table tbody tr:hover th{background-color:#f5f5f5}.bokeh table .span1{float:none;width:44px;margin-left:0}.bokeh table .span2{float:none;width:124px;margin-left:0}.bokeh table .span3{float:none;width:204px;margin-left:0}.bokeh table .span4{float:none;width:284px;margin-left:0}.bokeh table .span5{float:none;width:364px;margin-left:0}.bokeh table .span6{float:none;width:444px;margin-left:0}.bokeh table .span7{float:none;width:524px;margin-left:0}.bokeh table .span8{float:none;width:604px;margin-left:0}.bokeh table .span9{float:none;width:684px;margin-left:0}.bokeh table .span10{float:none;width:764px;margin-left:0}.bokeh table .span11{float:none;width:844px;margin-left:0}.bokeh table .span12{float:none;width:924px;margin-left:0}.bokeh table .span13{float:none;width:1004px;margin-left:0}.bokeh table .span14{float:none;width:1084px;margin-left:0}.bokeh table .span15{float:none;width:1164px;margin-left:0}.bokeh table .span16{float:none;width:1244px;margin-left:0}.bokeh table .span17{float:none;width:1324px;margin-left:0}.bokeh table .span18{float:none;width:1404px;margin-left:0}.bokeh table .span19{float:none;width:1484px;margin-left:0}.bokeh table .span20{float:none;width:1564px;margin-left:0}.bokeh table .span21{float:none;width:1644px;margin-left:0}.bokeh table .span22{float:none;width:1724px;margin-left:0}.bokeh table .span23{float:none;width:1804px;margin-left:0}.bokeh table .span24{float:none;width:1884px;margin-left:0}.bokeh [class^=icon-],.bokeh [class*=" icon-"]{display:inline-block;width:14px;height:14px;line-height:14px;vertical-align:text-top;background-image:url(../img/glyphicons-halflings.png);background-position:14px 14px;background-repeat:no-repeat}.bokeh [class^=icon-]:last-child,.bokeh [class*=" icon-"]:last-child{}.bokeh .icon-white{background-image:url(../img/glyphicons-halflings-white.png)}.bokeh .icon-glass{background-position:0 0}.bokeh .icon-music{background-position:-24px 0}.bokeh .icon-search{background-position:-48px 0}.bokeh .icon-envelope{background-position:-72px 0}.bokeh .icon-heart{background-position:-96px 0}.bokeh .icon-star{background-position:-120px 0}.bokeh .icon-star-empty{background-position:-144px 0}.bokeh .icon-user{background-position:-168px 0}.bokeh .icon-film{background-position:-192px 0}.bokeh .icon-th-large{background-position:-216px 0}.bokeh .icon-th{background-position:-240px 0}.bokeh .icon-th-list{background-position:-264px 0}.bokeh .icon-ok{background-position:-288px 0}.bokeh .icon-remove{background-position:-312px 0}.bokeh .icon-zoom-in{background-position:-336px 0}.bokeh .icon-zoom-out{background-position:-360px 0}.bokeh .icon-off{background-position:-384px 0}.bokeh .icon-signal{background-position:-408px 0}.bokeh .icon-cog{background-position:-432px 0}.bokeh .icon-trash{background-position:-456px 0}.bokeh .icon-home{background-position:0 -24px}.bokeh .icon-file{background-position:-24px -24px}.bokeh .icon-time{background-position:-48px -24px}.bokeh .icon-road{background-position:-72px -24px}.bokeh .icon-download-alt{background-position:-96px -24px}.bokeh .icon-download{background-position:-120px -24px}.bokeh .icon-upload{background-position:-144px -24px}.bokeh .icon-inbox{background-position:-168px -24px}.bokeh .icon-play-circle{background-position:-192px -24px}.bokeh .icon-repeat{background-position:-216px -24px}.bokeh .icon-refresh{background-position:-240px -24px}.bokeh .icon-list-alt{background-position:-264px -24px}.bokeh .icon-lock{background-position:-287px -24px}.bokeh .icon-flag{background-position:-312px -24px}.bokeh .icon-headphones{background-position:-336px -24px}.bokeh .icon-volume-off{background-position:-360px -24px}.bokeh .icon-volume-down{background-position:-384px -24px}.bokeh .icon-volume-up{background-position:-408px -24px}.bokeh .icon-qrcode{background-position:-432px -24px}.bokeh .icon-barcode{background-position:-456px -24px}.bokeh .icon-tag{background-position:0 -48px}.bokeh .icon-tags{background-position:-25px -48px}.bokeh .icon-book{background-position:-48px -48px}.bokeh .icon-bookmark{background-position:-72px -48px}.bokeh .icon-print{background-position:-96px -48px}.bokeh .icon-camera{background-position:-120px -48px}.bokeh .icon-font{background-position:-144px -48px}.bokeh .icon-bold{background-position:-167px -48px}.bokeh .icon-italic{background-position:-192px -48px}.bokeh .icon-text-height{background-position:-216px -48px}.bokeh .icon-text-width{background-position:-240px -48px}.bokeh .icon-align-left{background-position:-264px -48px}.bokeh .icon-align-center{background-position:-288px -48px}.bokeh .icon-align-right{background-position:-312px -48px}.bokeh .icon-align-justify{background-position:-336px -48px}.bokeh .icon-list{background-position:-360px -48px}.bokeh .icon-indent-left{background-position:-384px -48px}.bokeh .icon-indent-right{background-position:-408px -48px}.bokeh .icon-facetime-video{background-position:-432px -48px}.bokeh .icon-picture{background-position:-456px -48px}.bokeh .icon-pencil{background-position:0 -72px}.bokeh .icon-map-marker{background-position:-24px -72px}.bokeh .icon-adjust{background-position:-48px -72px}.bokeh .icon-tint{background-position:-72px -72px}.bokeh .icon-edit{background-position:-96px -72px}.bokeh .icon-share{background-position:-120px -72px}.bokeh .icon-check{background-position:-144px -72px}.bokeh .icon-move{background-position:-168px -72px}.bokeh .icon-step-backward{background-position:-192px -72px}.bokeh .icon-fast-backward{background-position:-216px -72px}.bokeh .icon-backward{background-position:-240px -72px}.bokeh .icon-play{background-position:-264px -72px}.bokeh .icon-pause{background-position:-288px -72px}.bokeh .icon-stop{background-position:-312px -72px}.bokeh .icon-forward{background-position:-336px -72px}.bokeh .icon-fast-forward{background-position:-360px -72px}.bokeh .icon-step-forward{background-position:-384px -72px}.bokeh .icon-eject{background-position:-408px -72px}.bokeh .icon-chevron-left{background-position:-432px -72px}.bokeh .icon-chevron-right{background-position:-456px -72px}.bokeh .icon-plus-sign{background-position:0 -96px}.bokeh .icon-minus-sign{background-position:-24px -96px}.bokeh .icon-remove-sign{background-position:-48px -96px}.bokeh .icon-ok-sign{background-position:-72px -96px}.bokeh .icon-question-sign{background-position:-96px -96px}.bokeh .icon-info-sign{background-position:-120px -96px}.bokeh .icon-screenshot{background-position:-144px -96px}.bokeh .icon-remove-circle{background-position:-168px -96px}.bokeh .icon-ok-circle{background-position:-192px -96px}.bokeh .icon-ban-circle{background-position:-216px -96px}.bokeh .icon-arrow-left{background-position:-240px -96px}.bokeh .icon-arrow-right{background-position:-264px -96px}.bokeh .icon-arrow-up{background-position:-289px -96px}.bokeh .icon-arrow-down{background-position:-312px -96px}.bokeh .icon-share-alt{background-position:-336px -96px}.bokeh .icon-resize-full{background-position:-360px -96px}.bokeh .icon-resize-small{background-position:-384px -96px}.bokeh .icon-plus{background-position:-408px -96px}.bokeh .icon-minus{background-position:-433px -96px}.bokeh .icon-asterisk{background-position:-456px -96px}.bokeh .icon-exclamation-sign{background-position:0 -120px}.bokeh .icon-gift{background-position:-24px -120px}.bokeh .icon-leaf{background-position:-48px -120px}.bokeh .icon-fire{background-position:-72px -120px}.bokeh .icon-eye-open{background-position:-96px -120px}.bokeh .icon-eye-close{background-position:-120px -120px}.bokeh .icon-warning-sign{background-position:-144px -120px}.bokeh .icon-plane{background-position:-168px -120px}.bokeh .icon-calendar{background-position:-192px -120px}.bokeh .icon-random{background-position:-216px -120px}.bokeh .icon-comment{background-position:-240px -120px}.bokeh .icon-magnet{background-position:-264px -120px}.bokeh .icon-chevron-up{background-position:-288px -120px}.bokeh .icon-chevron-down{background-position:-313px -119px}.bokeh .icon-retweet{background-position:-336px -120px}.bokeh .icon-shopping-cart{background-position:-360px -120px}.bokeh .icon-folder-close{background-position:-384px -120px}.bokeh .icon-folder-open{background-position:-408px -120px}.bokeh .icon-resize-vertical{background-position:-432px -119px}.bokeh .icon-resize-horizontal{background-position:-456px -118px}.bokeh .icon-hdd{background-position:0 -144px}.bokeh .icon-bullhorn{background-position:-24px -144px}.bokeh .icon-bell{background-position:-48px -144px}.bokeh .icon-certificate{background-position:-72px -144px}.bokeh .icon-thumbs-up{background-position:-96px -144px}.bokeh .icon-thumbs-down{background-position:-120px -144px}.bokeh .icon-hand-right{background-position:-144px -144px}.bokeh .icon-hand-left{background-position:-168px -144px}.bokeh .icon-hand-up{background-position:-192px -144px}.bokeh .icon-hand-down{background-position:-216px -144px}.bokeh .icon-circle-arrow-right{background-position:-240px -144px}.bokeh .icon-circle-arrow-left{background-position:-264px -144px}.bokeh .icon-circle-arrow-up{background-position:-288px -144px}.bokeh .icon-circle-arrow-down{background-position:-312px -144px}.bokeh .icon-globe{background-position:-336px -144px}.bokeh .icon-wrench{background-position:-360px -144px}.bokeh .icon-tasks{background-position:-384px -144px}.bokeh .icon-filter{background-position:-408px -144px}.bokeh .icon-briefcase{background-position:-432px -144px}.bokeh .icon-fullscreen{background-position:-456px -144px}.bokeh .dropup,.bokeh .dropdown{position:relative}.bokeh .dropdown-toggle{}.bokeh .dropdown-toggle:active,.bokeh .open .dropdown-toggle{outline:0}.bokeh .caret{display:inline-block;width:0;height:0;vertical-align:top;border-top:4px solid #000;border-right:4px solid transparent;border-left:4px solid transparent;content:"";opacity:.3;filter:alpha(opacity=30)}.bokeh .dropdown .caret{margin-top:8px;margin-left:2px}.bokeh .dropdown:hover .caret,.bokeh .open .caret{opacity:1;filter:alpha(opacity=100)}.bokeh .dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:4px 0;margin:1px 0 0;list-style:none;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.bokeh .dropdown-menu.pull-right{right:0;left:auto}.bokeh .dropdown-menu .divider{height:1px;margin:8px 1px;overflow:hidden;background-color:#e5e5e5;border-bottom:1px solid #fff}.bokeh .dropdown-menu a{display:block;padding:3px 15px;clear:both;font-weight:400;line-height:18px;color:#333;white-space:nowrap}.bokeh .dropdown-menu li>a:hover,.bokeh .dropdown-menu .active>a,.bokeh .dropdown-menu .active>a:hover{color:#fff;text-decoration:none;background-color:#08c}.bokeh .open{}.bokeh .open>.dropdown-menu{display:block}.bokeh .pull-right>.dropdown-menu{right:0;left:auto}.bokeh .dropup .caret,.bokeh .navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid #000;content:"\2191"}.bokeh .dropup .dropdown-menu,.bokeh .navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}.bokeh .typeahead{margin-top:2px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.bokeh .well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #eee;border:1px solid rgba(0,0,0,.05);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.bokeh .well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.bokeh .well-large{padding:24px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.bokeh .well-small{padding:9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.bokeh .fade{opacity:0;-webkit-transition:opacity .15s linear;-moz-transition:opacity .15s linear;-ms-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.bokeh .fade.in{opacity:1}.bokeh .collapse{position:relative;height:0;overflow:hidden;-webkit-transition:height .35s ease;-moz-transition:height .35s ease;-ms-transition:height .35s ease;-o-transition:height .35s ease;transition:height .35s ease}.bokeh .collapse.in{height:auto}.bokeh .close{float:right;font-size:20px;font-weight:700;line-height:18px;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.bokeh .close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.4;filter:alpha(opacity=40)}.bokeh button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.bokeh .btn{display:inline-block;padding:4px 10px;margin-bottom:0;font-size:13px;line-height:18px;color:#333;text-align:center;text-shadow:0 1px 1px rgba(255,255,255,.75);vertical-align:middle;cursor:pointer;background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-ms-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(top,#fff,#e6e6e6);background-repeat:repeat-x;border:1px solid #ccc;border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)}.bokeh .btn:hover,.bokeh .btn:active,.bokeh .btn.active,.bokeh .btn.disabled,.bokeh .btn[disabled]{background-color:#e6e6e6}.bokeh .btn:active,.bokeh .btn.active{background-color:#ccc \9}.bokeh .btn:first-child{}.bokeh .btn:hover{color:#333;text-decoration:none;background-color:#e6e6e6;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-ms-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.bokeh .btn:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.bokeh .btn.active,.bokeh .btn:active{background-color:#e6e6e6;background-color:#d9d9d9 \9;background-image:none;outline:0;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.bokeh .btn.disabled,.bokeh .btn[disabled]{cursor:default;background-color:#e6e6e6;background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.bokeh .btn-large{padding:9px 14px;font-size:15px;line-height:normal;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.bokeh .btn-large [class^=icon-]{margin-top:1px}.bokeh .btn-small{padding:5px 9px;font-size:11px;line-height:16px}.bokeh .btn-small [class^=icon-]{margin-top:-1px}.bokeh .btn-mini{padding:2px 6px;font-size:11px;line-height:14px}.bokeh .btn-primary,.bokeh .btn-primary:hover,.bokeh .btn-warning,.bokeh .btn-warning:hover,.bokeh .btn-danger,.bokeh .btn-danger:hover,.bokeh .btn-success,.bokeh .btn-success:hover,.bokeh .btn-info,.bokeh .btn-info:hover,.bokeh .btn-inverse,.bokeh .btn-inverse:hover{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.bokeh .btn-primary.active,.bokeh .btn-warning.active,.bokeh .btn-danger.active,.bokeh .btn-success.active,.bokeh .btn-info.active,.bokeh .btn-inverse.active{color:rgba(255,255,255,.75)}.bokeh .btn{border-color:#ccc;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25)}.bokeh .btn-primary{background-color:#0074cc;background-image:-moz-linear-gradient(top,#08c,#05c);background-image:-ms-linear-gradient(top,#08c,#05c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#05c));background-image:-webkit-linear-gradient(top,#08c,#05c);background-image:-o-linear-gradient(top,#08c,#05c);background-image:linear-gradient(top,#08c,#05c);background-repeat:repeat-x;border-color:#05c #05c #003580;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0055cc', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.bokeh .btn-primary:hover,.bokeh .btn-primary:active,.bokeh .btn-primary.active,.bokeh .btn-primary.disabled,.bokeh .btn-primary[disabled]{background-color:#05c}.bokeh .btn-primary:active,.bokeh .btn-primary.active{background-color:#004099 \9}.bokeh .btn-warning{background-color:#faa732;background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-image:-ms-linear-gradient(top,#fbb450,#f89406);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(top,#fbb450,#f89406);background-repeat:repeat-x;border-color:#f89406 #f89406 #ad6704;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbb450', endColorstr='#f89406', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.bokeh .btn-warning:hover,.bokeh .btn-warning:active,.bokeh .btn-warning.active,.bokeh .btn-warning.disabled,.bokeh .btn-warning[disabled]{background-color:#f89406}.bokeh .btn-warning:active,.bokeh .btn-warning.active{background-color:#c67605 \9}.bokeh .btn-danger{background-color:#da4f49;background-image:-moz-linear-gradient(top,#ee5f5b,#bd362f);background-image:-ms-linear-gradient(top,#ee5f5b,#bd362f);background-image:-webkit-gradient(linear,0 0,0 100%,from(#ee5f5b),to(#bd362f));background-image:-webkit-linear-gradient(top,#ee5f5b,#bd362f);background-image:-o-linear-gradient(top,#ee5f5b,#bd362f);background-image:linear-gradient(top,#ee5f5b,#bd362f);background-repeat:repeat-x;border-color:#bd362f #bd362f #802420;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#bd362f', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.bokeh .btn-danger:hover,.bokeh .btn-danger:active,.bokeh .btn-danger.active,.bokeh .btn-danger.disabled,.bokeh .btn-danger[disabled]{background-color:#bd362f}.bokeh .btn-danger:active,.bokeh .btn-danger.active{background-color:#942a25 \9}.bokeh .btn-success{background-color:#5bb75b;background-image:-moz-linear-gradient(top,#62c462,#51a351);background-image:-ms-linear-gradient(top,#62c462,#51a351);background-image:-webkit-gradient(linear,0 0,0 100%,from(#62c462),to(#51a351));background-image:-webkit-linear-gradient(top,#62c462,#51a351);background-image:-o-linear-gradient(top,#62c462,#51a351);background-image:linear-gradient(top,#62c462,#51a351);background-repeat:repeat-x;border-color:#51a351 #51a351 #387038;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#51a351', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.bokeh .btn-success:hover,.bokeh .btn-success:active,.bokeh .btn-success.active,.bokeh .btn-success.disabled,.bokeh .btn-success[disabled]{background-color:#51a351}.bokeh .btn-success:active,.bokeh .btn-success.active{background-color:#408140 \9}.bokeh .btn-info{background-color:#49afcd;background-image:-moz-linear-gradient(top,#5bc0de,#2f96b4);background-image:-ms-linear-gradient(top,#5bc0de,#2f96b4);background-image:-webkit-gradient(linear,0 0,0 100%,from(#5bc0de),to(#2f96b4));background-image:-webkit-linear-gradient(top,#5bc0de,#2f96b4);background-image:-o-linear-gradient(top,#5bc0de,#2f96b4);background-image:linear-gradient(top,#5bc0de,#2f96b4);background-repeat:repeat-x;border-color:#2f96b4 #2f96b4 #1f6377;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#5bc0de', endColorstr='#2f96b4', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.bokeh .btn-info:hover,.bokeh .btn-info:active,.bokeh .btn-info.active,.bokeh .btn-info.disabled,.bokeh .btn-info[disabled]{background-color:#2f96b4}.bokeh .btn-info:active,.bokeh .btn-info.active{background-color:#24748c \9}.bokeh .btn-inverse{background-color:#414141;background-image:-moz-linear-gradient(top,#555,#222);background-image:-ms-linear-gradient(top,#555,#222);background-image:-webkit-gradient(linear,0 0,0 100%,from(#555),to(#222));background-image:-webkit-linear-gradient(top,#555,#222);background-image:-o-linear-gradient(top,#555,#222);background-image:linear-gradient(top,#555,#222);background-repeat:repeat-x;border-color:#222 #222 #000;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#555555', endColorstr='#222222', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.bokeh .btn-inverse:hover,.bokeh .btn-inverse:active,.bokeh .btn-inverse.active,.bokeh .btn-inverse.disabled,.bokeh .btn-inverse[disabled]{background-color:#222}.bokeh .btn-inverse:active,.bokeh .btn-inverse.active{background-color:#080808 \9}.bokeh button.btn,.bokeh input[type=submit].btn{}.bokeh button.btn::-moz-focus-inner,.bokeh input[type=submit].btn::-moz-focus-inner{padding:0;border:0}.bokeh button.btn.btn-large,.bokeh input[type=submit].btn.btn-large{}.bokeh button.btn.btn-small,.bokeh input[type=submit].btn.btn-small{}.bokeh button.btn.btn-mini,.bokeh input[type=submit].btn.btn-mini{}.bokeh .btn-group{position:relative}.bokeh .btn-group:before,.bokeh .btn-group:after{display:table;content:""}.bokeh .btn-group:after{clear:both}.bokeh .btn-group:first-child{}.bokeh .btn-group+.btn-group{margin-left:5px}.bokeh .btn-toolbar{margin-top:9px;margin-bottom:9px}.bokeh .btn-toolbar .btn-group{display:inline-block}.bokeh .btn-group>.btn{position:relative;float:left;margin-left:-1px;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.bokeh .btn-group>.btn:first-child{margin-left:0;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-bottomleft:4px;-moz-border-radius-topleft:4px}.bokeh .btn-group>.btn:last-child,.bokeh .btn-group>.dropdown-toggle{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-topright:4px;-moz-border-radius-bottomright:4px}.bokeh .btn-group>.btn.large:first-child{margin-left:0;-webkit-border-bottom-left-radius:6px;border-bottom-left-radius:6px;-webkit-border-top-left-radius:6px;border-top-left-radius:6px;-moz-border-radius-bottomleft:6px;-moz-border-radius-topleft:6px}.bokeh .btn-group>.btn.large:last-child,.bokeh .btn-group>.large.dropdown-toggle{-webkit-border-top-right-radius:6px;border-top-right-radius:6px;-webkit-border-bottom-right-radius:6px;border-bottom-right-radius:6px;-moz-border-radius-topright:6px;-moz-border-radius-bottomright:6px}.bokeh .btn-group>.btn:hover,.bokeh .btn-group>.btn:focus,.bokeh .btn-group>.btn:active,.bokeh .btn-group>.btn.active{z-index:2}.bokeh .btn-group .dropdown-toggle:active,.bokeh .btn-group.open .dropdown-toggle{outline:0}.bokeh .btn-group>.dropdown-toggle{padding-right:8px;padding-left:8px;-webkit-box-shadow:inset 1px 0 0 rgba(255,255,255,.125),inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 1px 0 0 rgba(255,255,255,.125),inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 1px 0 0 rgba(255,255,255,.125),inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)}.bokeh .btn-group>.btn-mini.dropdown-toggle{padding-right:5px;padding-left:5px}.bokeh .btn-group>.btn-small.dropdown-toggle{}.bokeh .btn-group>.btn-large.dropdown-toggle{padding-right:12px;padding-left:12px}.bokeh .btn-group.open .dropdown-toggle{background-image:none;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.bokeh .btn-group.open .btn.dropdown-toggle{background-color:#e6e6e6}.bokeh .btn-group.open .btn-primary.dropdown-toggle{background-color:#05c}.bokeh .btn-group.open .btn-warning.dropdown-toggle{background-color:#f89406}.bokeh .btn-group.open .btn-danger.dropdown-toggle{background-color:#bd362f}.bokeh .btn-group.open .btn-success.dropdown-toggle{background-color:#51a351}.bokeh .btn-group.open .btn-info.dropdown-toggle{background-color:#2f96b4}.bokeh .btn-group.open .btn-inverse.dropdown-toggle{background-color:#222}.bokeh .btn .caret{margin-top:7px;margin-left:0}.bokeh .btn:hover .caret,.bokeh .open.btn-group .caret{opacity:1;filter:alpha(opacity=100)}.bokeh .btn-mini .caret{margin-top:5px}.bokeh .btn-small .caret{margin-top:6px}.bokeh .btn-large .caret{margin-top:6px;border-top-width:5px;border-right-width:5px;border-left-width:5px}.bokeh .dropup .btn-large .caret{border-top:0;border-bottom:5px solid #000}.bokeh .btn-primary .caret,.bokeh .btn-warning .caret,.bokeh .btn-danger .caret,.bokeh .btn-info .caret,.bokeh .btn-success .caret,.bokeh .btn-inverse .caret{border-top-color:#fff;border-bottom-color:#fff;opacity:.75;filter:alpha(opacity=75)}.bokeh .alert{padding:8px 35px 8px 14px;margin-bottom:18px;color:#c09853;text-shadow:0 1px 0 rgba(255,255,255,.5);background-color:#fcf8e3;border:1px solid #fbeed5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.bokeh .alert-heading{color:inherit}.bokeh .alert .close{position:relative;top:-2px;right:-21px;line-height:18px}.bokeh .alert-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.bokeh .alert-danger,.bokeh .alert-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.bokeh .alert-info{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.bokeh .alert-block{padding-top:14px;padding-bottom:14px}.bokeh .alert-block>p,.bokeh .alert-block>ul{margin-bottom:0}.bokeh .alert-block p+p{margin-top:5px}.bokeh .nav{margin-bottom:18px;margin-left:0;list-style:none}.bokeh .nav>li>a{display:block}.bokeh .nav>li>a:hover{text-decoration:none;background-color:#eee}.bokeh .nav>.pull-right{float:right}.bokeh .nav .nav-header{display:block;padding:3px 15px;font-size:11px;font-weight:700;line-height:18px;color:#999;text-shadow:0 1px 0 rgba(255,255,255,.5);text-transform:uppercase}.bokeh .nav li+.nav-header{margin-top:9px}.bokeh .nav-list{padding-right:15px;padding-left:15px;margin-bottom:0}.bokeh .nav-list>li>a,.bokeh .nav-list .nav-header{margin-right:-15px;margin-left:-15px;text-shadow:0 1px 0 rgba(255,255,255,.5)}.bokeh .nav-list>li>a{padding:3px 15px}.bokeh .nav-list>.active>a,.bokeh .nav-list>.active>a:hover{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.2);background-color:#08c}.bokeh .nav-list [class^=icon-]{margin-right:2px}.bokeh .nav-list .divider{height:1px;margin:8px 1px;overflow:hidden;background-color:#e5e5e5;border-bottom:1px solid #fff}.bokeh .nav-tabs,.bokeh .nav-pills{}.bokeh .nav-tabs:before,.bokeh .nav-pills:before,.bokeh .nav-tabs:after,.bokeh .nav-pills:after{display:table;content:""}.bokeh .nav-tabs:after,.bokeh .nav-pills:after{clear:both}.bokeh .nav-tabs>li,.bokeh .nav-pills>li{float:left}.bokeh .nav-tabs>li>a,.bokeh .nav-pills>li>a{padding-right:12px;padding-left:12px;margin-right:2px;line-height:14px}.bokeh .nav-tabs{border-bottom:1px solid #ddd}.bokeh .nav-tabs>li{margin-bottom:-1px}.bokeh .nav-tabs>li>a{padding-top:8px;padding-bottom:8px;line-height:18px;border:1px solid transparent;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.bokeh .nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.bokeh .nav-tabs>.active>a,.bokeh .nav-tabs>.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.bokeh .nav-pills>li>a{padding-top:8px;padding-bottom:8px;margin-top:2px;margin-bottom:2px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.bokeh .nav-pills>.active>a,.bokeh .nav-pills>.active>a:hover{color:#fff;background-color:#08c}.bokeh .nav-stacked>li{float:none}.bokeh .nav-stacked>li>a{margin-right:0}.bokeh .nav-tabs.nav-stacked{border-bottom:0}.bokeh .nav-tabs.nav-stacked>li>a{border:1px solid #ddd;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.bokeh .nav-tabs.nav-stacked>li:first-child>a{-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.bokeh .nav-tabs.nav-stacked>li:last-child>a{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.bokeh .nav-tabs.nav-stacked>li>a:hover{z-index:2;border-color:#ddd}.bokeh .nav-pills.nav-stacked>li>a{margin-bottom:3px}.bokeh .nav-pills.nav-stacked>li:last-child>a{margin-bottom:1px}.bokeh .nav-tabs .dropdown-menu{-webkit-border-radius:0 0 5px 5px;-moz-border-radius:0 0 5px 5px;border-radius:0 0 5px 5px}.bokeh .nav-pills .dropdown-menu{-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.bokeh .nav-tabs .dropdown-toggle .caret,.bokeh .nav-pills .dropdown-toggle .caret{margin-top:6px;border-top-color:#08c;border-bottom-color:#08c}.bokeh .nav-tabs .dropdown-toggle:hover .caret,.bokeh .nav-pills .dropdown-toggle:hover .caret{border-top-color:#005580;border-bottom-color:#005580}.bokeh .nav-tabs .active .dropdown-toggle .caret,.bokeh .nav-pills .active .dropdown-toggle .caret{border-top-color:#333;border-bottom-color:#333}.bokeh .nav>.dropdown.active>a:hover{color:#000;cursor:pointer}.bokeh .nav-tabs .open .dropdown-toggle,.bokeh .nav-pills .open .dropdown-toggle,.bokeh .nav>li.dropdown.open.active>a:hover{color:#fff;background-color:#999;border-color:#999}.bokeh .nav li.dropdown.open .caret,.bokeh .nav li.dropdown.open.active .caret,.bokeh .nav li.dropdown.open a:hover .caret{border-top-color:#fff;border-bottom-color:#fff;opacity:1;filter:alpha(opacity=100)}.bokeh .tabs-stacked .open>a:hover{border-color:#999}.bokeh .tabbable{}.bokeh .tabbable:before,.bokeh .tabbable:after{display:table;content:""}.bokeh .tabbable:after{clear:both}.bokeh .tab-content{overflow:auto}.bokeh .tabs-below>.nav-tabs,.bokeh .tabs-right>.nav-tabs,.bokeh .tabs-left>.nav-tabs{border-bottom:0}.bokeh .tab-content>.tab-pane,.bokeh .pill-content>.pill-pane{display:none}.bokeh .tab-content>.active,.bokeh .pill-content>.active{display:block}.bokeh .tabs-below>.nav-tabs{border-top:1px solid #ddd}.bokeh .tabs-below>.nav-tabs>li{margin-top:-1px;margin-bottom:0}.bokeh .tabs-below>.nav-tabs>li>a{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.bokeh .tabs-below>.nav-tabs>li>a:hover{border-top-color:#ddd;border-bottom-color:transparent}.bokeh .tabs-below>.nav-tabs>.active>a,.bokeh .tabs-below>.nav-tabs>.active>a:hover{border-color:transparent #ddd #ddd}.bokeh .tabs-left>.nav-tabs>li,.bokeh .tabs-right>.nav-tabs>li{float:none}.bokeh .tabs-left>.nav-tabs>li>a,.bokeh .tabs-right>.nav-tabs>li>a{min-width:74px;margin-right:0;margin-bottom:3px}.bokeh .tabs-left>.nav-tabs{float:left;margin-right:19px;border-right:1px solid #ddd}.bokeh .tabs-left>.nav-tabs>li>a{margin-right:-1px;-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.bokeh .tabs-left>.nav-tabs>li>a:hover{border-color:#eee #ddd #eee #eee}.bokeh .tabs-left>.nav-tabs .active>a,.bokeh .tabs-left>.nav-tabs .active>a:hover{border-color:#ddd transparent #ddd #ddd}.bokeh .tabs-right>.nav-tabs{float:right;margin-left:19px;border-left:1px solid #ddd}.bokeh .tabs-right>.nav-tabs>li>a{margin-left:-1px;-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.bokeh .tabs-right>.nav-tabs>li>a:hover{border-color:#eee #eee #eee #ddd}.bokeh .tabs-right>.nav-tabs .active>a,.bokeh .tabs-right>.nav-tabs .active>a:hover{border-color:#ddd #ddd #ddd transparent}.bokeh .navbar{margin-bottom:18px;overflow:visible}.bokeh .navbar-inner{min-height:40px;padding-right:20px;padding-left:20px;background-color:#2c2c2c;background-image:-moz-linear-gradient(top,#333,#222);background-image:-ms-linear-gradient(top,#333,#222);background-image:-webkit-gradient(linear,0 0,0 100%,from(#333),to(#222));background-image:-webkit-linear-gradient(top,#333,#222);background-image:-o-linear-gradient(top,#333,#222);background-image:linear-gradient(top,#333,#222);background-repeat:repeat-x;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#222222', GradientType=0);-webkit-box-shadow:0 1px 3px rgba(0,0,0,.25),inset 0 -1px 0 rgba(0,0,0,.1);-moz-box-shadow:0 1px 3px rgba(0,0,0,.25),inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:0 1px 3px rgba(0,0,0,.25),inset 0 -1px 0 rgba(0,0,0,.1)}.bokeh .navbar .container{width:auto}.bokeh .nav-collapse.collapse{height:auto}.bokeh .navbar{color:#999}.bokeh .navbar .brand:hover{text-decoration:none}.bokeh .navbar .brand{display:block;float:left;padding:8px 20px 12px;margin-left:-20px;font-size:20px;font-weight:200;line-height:1;color:#999}.bokeh .navbar .navbar-text{margin-bottom:0;line-height:40px}.bokeh .navbar .navbar-link{color:#999}.bokeh .navbar .navbar-link:hover{color:#fff}.bokeh .navbar .btn,.bokeh .navbar .btn-group{margin-top:5px}.bokeh .navbar .btn-group .btn{margin:0}.bokeh .navbar-form{margin-bottom:0}.bokeh .navbar-form:before,.bokeh .navbar-form:after{display:table;content:""}.bokeh .navbar-form:after{clear:both}.bokeh .navbar-form input,.bokeh .navbar-form select,.bokeh .navbar-form .radio,.bokeh .navbar-form .checkbox{margin-top:5px}.bokeh .navbar-form input,.bokeh .navbar-form select{display:inline-block;margin-bottom:0}.bokeh .navbar-form input[type=image],.bokeh .navbar-form input[type=checkbox],.bokeh .navbar-form input[type=radio]{margin-top:3px}.bokeh .navbar-form .input-append,.bokeh .navbar-form .input-prepend{margin-top:6px;white-space:nowrap}.bokeh .navbar-form .input-append input,.bokeh .navbar-form .input-prepend input{margin-top:0}.bokeh .navbar-search{position:relative;float:left;margin-top:6px;margin-bottom:0}.bokeh .navbar-search .search-query{padding:4px 9px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;font-weight:400;line-height:1;color:#fff;background-color:#626262;border:1px solid #151515;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1),0 1px 0 rgba(255,255,255,.15);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1),0 1px 0 rgba(255,255,255,.15);box-shadow:inset 0 1px 2px rgba(0,0,0,.1),0 1px 0 rgba(255,255,255,.15);-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.bokeh .navbar-search .search-query:-moz-placeholder{color:#ccc}.bokeh .navbar-search .search-query:-ms-input-placeholder{color:#ccc}.bokeh .navbar-search .search-query::-webkit-input-placeholder{color:#ccc}.bokeh .navbar-search .search-query:focus,.bokeh .navbar-search .search-query.focused{padding:5px 10px;color:#333;text-shadow:0 1px 0 #fff;background-color:#fff;border:0;outline:0;-webkit-box-shadow:0 0 3px rgba(0,0,0,.15);-moz-box-shadow:0 0 3px rgba(0,0,0,.15);box-shadow:0 0 3px rgba(0,0,0,.15)}.bokeh .navbar-fixed-top,.bokeh .navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030;margin-bottom:0}.bokeh .navbar-fixed-top .navbar-inner,.bokeh .navbar-fixed-bottom .navbar-inner{padding-right:0;padding-left:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.bokeh .navbar-fixed-top .container,.bokeh .navbar-fixed-bottom .container{width:940px}.bokeh .navbar-fixed-top{top:0}.bokeh .navbar-fixed-bottom{bottom:0}.bokeh .navbar .nav{position:relative;left:0;display:block;float:left;margin:0 10px 0 0}.bokeh .navbar .nav.pull-right{float:right}.bokeh .navbar .nav>li{display:block;float:left}.bokeh .navbar .nav>li>a{float:none;padding:9px 10px 11px;line-height:19px;color:#999;text-decoration:none;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.bokeh .navbar .btn{display:inline-block;padding:4px 10px;margin:5px 5px 6px;line-height:18px}.bokeh .navbar .btn-group{padding:5px 5px 6px;margin:0}.bokeh .navbar .nav>li>a:hover{color:#fff;text-decoration:none;background-color:transparent}.bokeh .navbar .nav .active>a,.bokeh .navbar .nav .active>a:hover{color:#fff;text-decoration:none;background-color:#222}.bokeh .navbar .divider-vertical{width:1px;height:40px;margin:0 9px;overflow:hidden;background-color:#222;border-right:1px solid #333}.bokeh .navbar .nav.pull-right{margin-right:0;margin-left:10px}.bokeh .navbar .btn-navbar{display:none;float:right;padding:7px 10px;margin-right:5px;margin-left:5px;background-color:#2c2c2c;background-image:-moz-linear-gradient(top,#333,#222);background-image:-ms-linear-gradient(top,#333,#222);background-image:-webkit-gradient(linear,0 0,0 100%,from(#333),to(#222));background-image:-webkit-linear-gradient(top,#333,#222);background-image:-o-linear-gradient(top,#333,#222);background-image:linear-gradient(top,#333,#222);background-repeat:repeat-x;border-color:#222 #222 #000;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#222222', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.075);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.075)}.bokeh .navbar .btn-navbar:hover,.bokeh .navbar .btn-navbar:active,.bokeh .navbar .btn-navbar.active,.bokeh .navbar .btn-navbar.disabled,.bokeh .navbar .btn-navbar[disabled]{background-color:#222}.bokeh .navbar .btn-navbar:active,.bokeh .navbar .btn-navbar.active{background-color:#080808 \9}.bokeh .navbar .btn-navbar .icon-bar{display:block;width:18px;height:2px;background-color:#f5f5f5;-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.25);-moz-box-shadow:0 1px 0 rgba(0,0,0,.25);box-shadow:0 1px 0 rgba(0,0,0,.25)}.bokeh .btn-navbar .icon-bar+.icon-bar{margin-top:3px}.bokeh .navbar .dropdown-menu:before{position:absolute;top:-7px;left:9px;display:inline-block;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-left:7px solid transparent;border-bottom-color:rgba(0,0,0,.2);content:''}.bokeh .navbar .dropdown-menu:after{position:absolute;top:-6px;left:10px;display:inline-block;border-right:6px solid transparent;border-bottom:6px solid #fff;border-left:6px solid transparent;content:''}.bokeh .navbar-fixed-bottom .dropdown-menu:before{top:auto;bottom:-7px;border-top:7px solid #ccc;border-bottom:0;border-top-color:rgba(0,0,0,.2)}.bokeh .navbar-fixed-bottom .dropdown-menu:after{top:auto;bottom:-6px;border-top:6px solid #fff;border-bottom:0}.bokeh .navbar .nav li.dropdown .dropdown-toggle .caret,.bokeh .navbar .nav li.dropdown.open .caret{border-top-color:#fff;border-bottom-color:#fff}.bokeh .navbar .nav li.dropdown.active .caret{opacity:1;filter:alpha(opacity=100)}.bokeh .navbar .nav li.dropdown.open>.dropdown-toggle,.bokeh .navbar .nav li.dropdown.active>.dropdown-toggle,.bokeh .navbar .nav li.dropdown.open.active>.dropdown-toggle{background-color:transparent}.bokeh .navbar .nav li.dropdown.active>.dropdown-toggle:hover{color:#fff}.bokeh .navbar .pull-right .dropdown-menu,.bokeh .navbar .dropdown-menu.pull-right{right:0;left:auto}.bokeh .navbar .pull-right .dropdown-menu:before,.bokeh .navbar .dropdown-menu.pull-right:before{right:12px;left:auto}.bokeh .navbar .pull-right .dropdown-menu:after,.bokeh .navbar .dropdown-menu.pull-right:after{right:13px;left:auto}.bokeh .breadcrumb{padding:7px 14px;margin:0 0 18px;list-style:none;background-color:#fbfbfb;background-image:-moz-linear-gradient(top,#fff,#f5f5f5);background-image:-ms-linear-gradient(top,#fff,#f5f5f5);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#f5f5f5));background-image:-webkit-linear-gradient(top,#fff,#f5f5f5);background-image:-o-linear-gradient(top,#fff,#f5f5f5);background-image:linear-gradient(top,#fff,#f5f5f5);background-repeat:repeat-x;border:1px solid #ddd;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f5f5f5', GradientType=0);-webkit-box-shadow:inset 0 1px 0 #fff;-moz-box-shadow:inset 0 1px 0 #fff;box-shadow:inset 0 1px 0 #fff}.bokeh .breadcrumb li{display:inline-block;text-shadow:0 1px 0 #fff}.bokeh .breadcrumb .divider{padding:0 5px;color:#999}.bokeh .breadcrumb .active a{color:#333}.bokeh .pagination{height:36px;margin:18px 0}.bokeh .pagination ul{display:inline-block;margin-bottom:0;margin-left:0;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}.bokeh .pagination li{display:inline}.bokeh .pagination a{float:left;padding:0 14px;line-height:34px;text-decoration:none;border:1px solid #ddd;border-left-width:0}.bokeh .pagination a:hover,.bokeh .pagination .active a{background-color:#f5f5f5}.bokeh .pagination .active a{color:#999;cursor:default}.bokeh .pagination .disabled span,.bokeh .pagination .disabled a,.bokeh .pagination .disabled a:hover{color:#999;cursor:default;background-color:transparent}.bokeh .pagination li:first-child a{border-left-width:1px;-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.bokeh .pagination li:last-child a{-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}.bokeh .pagination-centered{text-align:center}.bokeh .pagination-right{text-align:right}.bokeh .pager{margin-bottom:18px;margin-left:0;text-align:center;list-style:none}.bokeh .pager:before,.bokeh .pager:after{display:table;content:""}.bokeh .pager:after{clear:both}.bokeh .pager li{display:inline}.bokeh .pager a{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px}.bokeh .pager a:hover{text-decoration:none;background-color:#f5f5f5}.bokeh .pager .next a{float:right}.bokeh .pager .previous a{float:left}.bokeh .pager .disabled a,.bokeh .pager .disabled a:hover{color:#999;cursor:default;background-color:#fff}.bokeh .modal-open .dropdown-menu{z-index:2050}.bokeh .modal-open .dropdown.open{}.bokeh .modal-open .popover{z-index:2060}.bokeh .modal-open .tooltip{z-index:2070}.bokeh .modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.bokeh .modal-backdrop.fade{opacity:0}.bokeh .modal-backdrop,.bokeh .modal-backdrop.fade.in{opacity:.8;filter:alpha(opacity=80)}.bokeh .modal{position:fixed;top:50%;left:50%;z-index:1050;width:560px;margin:-250px 0 0 -280px;overflow:auto;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,.3);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 3px 7px rgba(0,0,0,.3);-moz-box-shadow:0 3px 7px rgba(0,0,0,.3);box-shadow:0 3px 7px rgba(0,0,0,.3);-webkit-background-clip:padding-box;-moz-background-clip:padding-box;background-clip:padding-box}.bokeh .modal.fade{top:-25%;-webkit-transition:opacity .3s linear,top .3s ease-out;-moz-transition:opacity .3s linear,top .3s ease-out;-ms-transition:opacity .3s linear,top .3s ease-out;-o-transition:opacity .3s linear,top .3s ease-out;transition:opacity .3s linear,top .3s ease-out}.bokeh .modal.fade.in{top:50%}.bokeh .modal-header{padding:9px 15px;border-bottom:1px solid #eee}.bokeh .modal-header .close{margin-top:2px}.bokeh .modal-body{max-height:400px;padding:15px;overflow-y:auto}.bokeh .modal-form{margin-bottom:0}.bokeh .modal-footer{padding:14px 15px 15px;margin-bottom:0;text-align:right;background-color:#f5f5f5;border-top:1px solid #ddd;-webkit-border-radius:0 0 6px 6px;-moz-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px;-webkit-box-shadow:inset 0 1px 0 #fff;-moz-box-shadow:inset 0 1px 0 #fff;box-shadow:inset 0 1px 0 #fff}.bokeh .modal-footer:before,.bokeh .modal-footer:after{display:table;content:""}.bokeh .modal-footer:after{clear:both}.bokeh .modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.bokeh .modal-footer .btn-group .btn+.btn{margin-left:-1px}.bokeh .tooltip{position:absolute;z-index:1020;display:block;padding:5px;font-size:11px;opacity:0;filter:alpha(opacity=0);visibility:visible}.bokeh .tooltip.in{opacity:.8;filter:alpha(opacity=80)}.bokeh .tooltip.top{margin-top:-2px}.bokeh .tooltip.right{margin-left:2px}.bokeh .tooltip.bottom{margin-top:2px}.bokeh .tooltip.left{margin-left:-2px}.bokeh .tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-top:5px solid #000;border-right:5px solid transparent;border-left:5px solid transparent}.bokeh .tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000}.bokeh .tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-right:5px solid transparent;border-bottom:5px solid #000;border-left:5px solid transparent}.bokeh .tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-top:5px solid transparent;border-right:5px solid #000;border-bottom:5px solid transparent}.bokeh .tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.bokeh .tooltip-arrow{position:absolute;width:0;height:0}.bokeh .popover{position:absolute;top:0;left:0;z-index:1010;display:none;padding:5px}.bokeh .popover.top{margin-top:-5px}.bokeh .popover.right{margin-left:5px}.bokeh .popover.bottom{margin-top:5px}.bokeh .popover.left{margin-left:-5px}.bokeh .popover.top .arrow{bottom:0;left:50%;margin-left:-5px;border-top:5px solid #000;border-right:5px solid transparent;border-left:5px solid transparent}.bokeh .popover.right .arrow{top:50%;left:0;margin-top:-5px;border-top:5px solid transparent;border-right:5px solid #000;border-bottom:5px solid transparent}.bokeh .popover.bottom .arrow{top:0;left:50%;margin-left:-5px;border-right:5px solid transparent;border-bottom:5px solid #000;border-left:5px solid transparent}.bokeh .popover.left .arrow{top:50%;right:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000}.bokeh .popover .arrow{position:absolute;width:0;height:0}.bokeh .popover-inner{width:280px;padding:3px;overflow:hidden;background:#000;background:rgba(0,0,0,.8);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 3px 7px rgba(0,0,0,.3);-moz-box-shadow:0 3px 7px rgba(0,0,0,.3);box-shadow:0 3px 7px rgba(0,0,0,.3)}.bokeh .popover-title{padding:9px 15px;line-height:1;background-color:#f5f5f5;border-bottom:1px solid #eee;-webkit-border-radius:3px 3px 0 0;-moz-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0}.bokeh .popover-content{padding:14px;background-color:#fff;-webkit-border-radius:0 0 3px 3px;-moz-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px;-webkit-background-clip:padding-box;-moz-background-clip:padding-box;background-clip:padding-box}.bokeh .popover-content p,.bokeh .popover-content ul,.bokeh .popover-content ol{margin-bottom:0}.bokeh .thumbnails{margin-left:-20px;list-style:none}.bokeh .thumbnails:before,.bokeh .thumbnails:after{display:table;content:""}.bokeh .thumbnails:after{clear:both}.bokeh .row-fluid .thumbnails{margin-left:0}.bokeh .thumbnails>li{float:left;margin-bottom:18px;margin-left:20px}.bokeh .thumbnail{display:block;padding:4px;line-height:1;border:1px solid #ddd;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.075);-moz-box-shadow:0 1px 1px rgba(0,0,0,.075);box-shadow:0 1px 1px rgba(0,0,0,.075)}.bokeh a.thumbnail:hover{border-color:#08c;-webkit-box-shadow:0 1px 4px rgba(0,105,214,.25);-moz-box-shadow:0 1px 4px rgba(0,105,214,.25);box-shadow:0 1px 4px rgba(0,105,214,.25)}.bokeh .thumbnail>img{display:block;max-width:100%;margin-right:auto;margin-left:auto}.bokeh .thumbnail .caption{padding:9px}.bokeh .label,.bokeh .badge{font-size:10.998px;font-weight:700;line-height:14px;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);white-space:nowrap;vertical-align:baseline;background-color:#999}.bokeh .label{padding:1px 4px 2px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.bokeh .badge{padding:1px 9px 2px;-webkit-border-radius:9px;-moz-border-radius:9px;border-radius:9px}.bokeh a.label:hover,.bokeh a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.bokeh .label-important,.bokeh .badge-important{background-color:#b94a48}.bokeh .label-important[href],.bokeh .badge-important[href]{background-color:#953b39}.bokeh .label-warning,.bokeh .badge-warning{background-color:#f89406}.bokeh .label-warning[href],.bokeh .badge-warning[href]{background-color:#c67605}.bokeh .label-success,.bokeh .badge-success{background-color:#468847}.bokeh .label-success[href],.bokeh .badge-success[href]{background-color:#356635}.bokeh .label-info,.bokeh .badge-info{background-color:#3a87ad}.bokeh .label-info[href],.bokeh .badge-info[href]{background-color:#2d6987}.bokeh .label-inverse,.bokeh .badge-inverse{background-color:#333}.bokeh .label-inverse[href],.bokeh .badge-inverse[href]{background-color:#1a1a1a}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-moz-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-ms-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:0 0}to{background-position:40px 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.bokeh .progress{height:18px;margin-bottom:18px;overflow:hidden;background-color:#f7f7f7;background-image:-moz-linear-gradient(top,#f5f5f5,#f9f9f9);background-image:-ms-linear-gradient(top,#f5f5f5,#f9f9f9);background-image:-webkit-gradient(linear,0 0,0 100%,from(#f5f5f5),to(#f9f9f9));background-image:-webkit-linear-gradient(top,#f5f5f5,#f9f9f9);background-image:-o-linear-gradient(top,#f5f5f5,#f9f9f9);background-image:linear-gradient(top,#f5f5f5,#f9f9f9);background-repeat:repeat-x;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f5f5f5', endColorstr='#f9f9f9', GradientType=0);-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.bokeh .progress .bar{width:0;height:18px;font-size:12px;color:#fff;text-align:center;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#0e90d2;background-image:-moz-linear-gradient(top,#149bdf,#0480be);background-image:-ms-linear-gradient(top,#149bdf,#0480be);background-image:-webkit-gradient(linear,0 0,0 100%,from(#149bdf),to(#0480be));background-image:-webkit-linear-gradient(top,#149bdf,#0480be);background-image:-o-linear-gradient(top,#149bdf,#0480be);background-image:linear-gradient(top,#149bdf,#0480be);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#149bdf', endColorstr='#0480be', GradientType=0);-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-moz-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;-webkit-transition:width .6s ease;-moz-transition:width .6s ease;-ms-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.bokeh .progress-striped .bar{background-color:#149bdf;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,.15)),color-stop(0.75,rgba(255,255,255,.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-ms-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;-moz-background-size:40px 40px;-o-background-size:40px 40px;background-size:40px 40px}.bokeh .progress.active .bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-moz-animation:progress-bar-stripes 2s linear infinite;-ms-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.bokeh .progress-danger .bar{background-color:#dd514c;background-image:-moz-linear-gradient(top,#ee5f5b,#c43c35);background-image:-ms-linear-gradient(top,#ee5f5b,#c43c35);background-image:-webkit-gradient(linear,0 0,0 100%,from(#ee5f5b),to(#c43c35));background-image:-webkit-linear-gradient(top,#ee5f5b,#c43c35);background-image:-o-linear-gradient(top,#ee5f5b,#c43c35);background-image:linear-gradient(top,#ee5f5b,#c43c35);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#c43c35', GradientType=0)}.bokeh .progress-danger.progress-striped .bar{background-color:#ee5f5b;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,.15)),color-stop(0.75,rgba(255,255,255,.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-ms-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.bokeh .progress-success .bar{background-color:#5eb95e;background-image:-moz-linear-gradient(top,#62c462,#57a957);background-image:-ms-linear-gradient(top,#62c462,#57a957);background-image:-webkit-gradient(linear,0 0,0 100%,from(#62c462),to(#57a957));background-image:-webkit-linear-gradient(top,#62c462,#57a957);background-image:-o-linear-gradient(top,#62c462,#57a957);background-image:linear-gradient(top,#62c462,#57a957);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#57a957', GradientType=0)}.bokeh .progress-success.progress-striped .bar{background-color:#62c462;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,.15)),color-stop(0.75,rgba(255,255,255,.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-ms-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.bokeh .progress-info .bar{background-color:#4bb1cf;background-image:-moz-linear-gradient(top,#5bc0de,#339bb9);background-image:-ms-linear-gradient(top,#5bc0de,#339bb9);background-image:-webkit-gradient(linear,0 0,0 100%,from(#5bc0de),to(#339bb9));background-image:-webkit-linear-gradient(top,#5bc0de,#339bb9);background-image:-o-linear-gradient(top,#5bc0de,#339bb9);background-image:linear-gradient(top,#5bc0de,#339bb9);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#5bc0de', endColorstr='#339bb9', GradientType=0)}.bokeh .progress-info.progress-striped .bar{background-color:#5bc0de;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,.15)),color-stop(0.75,rgba(255,255,255,.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-ms-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.bokeh .progress-warning .bar{background-color:#faa732;background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-image:-ms-linear-gradient(top,#fbb450,#f89406);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(top,#fbb450,#f89406);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbb450', endColorstr='#f89406', GradientType=0)}.bokeh .progress-warning.progress-striped .bar{background-color:#fbb450;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,.15)),color-stop(0.75,rgba(255,255,255,.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-ms-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.bokeh .accordion{margin-bottom:18px}.bokeh .accordion-group{margin-bottom:2px;border:1px solid #e5e5e5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.bokeh .accordion-heading{border-bottom:0}.bokeh .accordion-heading .accordion-toggle{display:block;padding:8px 15px}.bokeh .accordion-toggle{cursor:pointer}.bokeh .accordion-inner{padding:9px 15px;border-top:1px solid #e5e5e5}.bokeh .carousel{position:relative;margin-bottom:18px;line-height:1}.bokeh .carousel-inner{position:relative;width:100%;overflow:hidden}.bokeh .carousel .item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-moz-transition:.6s ease-in-out left;-ms-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.bokeh .carousel .item>img{display:block;line-height:1}.bokeh .carousel .active,.bokeh .carousel .next,.bokeh .carousel .prev{display:block}.bokeh .carousel .active{left:0}.bokeh .carousel .next,.bokeh .carousel .prev{position:absolute;top:0;width:100%}.bokeh .carousel .next{left:100%}.bokeh .carousel .prev{left:-100%}.bokeh .carousel .next.left,.bokeh .carousel .prev.right{left:0}.bokeh .carousel .active.left{left:-100%}.bokeh .carousel .active.right{left:100%}.bokeh .carousel-control{position:absolute;top:40%;left:15px;width:40px;height:40px;margin-top:-20px;font-size:60px;font-weight:100;line-height:30px;color:#fff;text-align:center;background:#222;border:3px solid #fff;-webkit-border-radius:23px;-moz-border-radius:23px;border-radius:23px;opacity:.5;filter:alpha(opacity=50)}.bokeh .carousel-control.right{right:15px;left:auto}.bokeh .carousel-control:hover{color:#fff;text-decoration:none;opacity:.9;filter:alpha(opacity=90)}.bokeh .carousel-caption{position:absolute;right:0;bottom:0;left:0;padding:10px 15px 5px;background:#333;background:rgba(0,0,0,.75)}.bokeh .carousel-caption h4,.bokeh .carousel-caption p{color:#fff}.bokeh .hero-unit{padding:60px;margin-bottom:30px;background-color:#eee;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.bokeh .hero-unit h1{margin-bottom:0;font-size:60px;line-height:1;letter-spacing:-1px;color:inherit}.bokeh .hero-unit p{font-size:18px;font-weight:200;line-height:27px;color:inherit}.bokeh .pull-right{float:right}.bokeh .pull-left{float:left}.bokeh .hide{display:none}.bokeh .show{display:block}.bokeh .invisible{visibility:hidden}.jstree-node,.jstree-children,.jstree-container-ul{display:block;margin:0;padding:0;list-style-type:none;list-style-image:none}.jstree-node{white-space:nowrap}.jstree-anchor{display:inline-block;color:#000;white-space:nowrap;padding:0 4px 0 1px;margin:0;vertical-align:top}.jstree-anchor:focus{outline:0}.jstree-anchor,.jstree-anchor:link,.jstree-anchor:visited,.jstree-anchor:hover,.jstree-anchor:active{text-decoration:none;color:inherit}.jstree-icon{display:inline-block;text-decoration:none;margin:0;padding:0;vertical-align:top;text-align:center}.jstree-icon:empty{display:inline-block;text-decoration:none;margin:0;padding:0;vertical-align:top;text-align:center}.jstree-ocl{cursor:pointer}.jstree .jstree-open>.jstree-children{display:block}.jstree .jstree-closed>.jstree-children,.jstree .jstree-leaf>.jstree-children{display:none}.jstree-anchor>.jstree-themeicon{margin-right:2px}.jstree-no-icons .jstree-themeicon,.jstree-anchor>.jstree-themeicon-hidden{display:none}.jstree-rtl .jstree-anchor{padding:0 1px 0 4px}.jstree-rtl .jstree-anchor>.jstree-themeicon{margin-left:2px;margin-right:0}.jstree-rtl .jstree-node{margin-left:0}.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-wholerow-ul{position:relative;display:inline-block;min-width:100%}.jstree-wholerow-ul .jstree-anchor,.jstree-wholerow-ul .jstree-icon{position:relative}.jstree-wholerow-ul .jstree-wholerow{width:100%;cursor:pointer;position:absolute;left:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vakata-context{display:none}.vakata-context,.vakata-context ul{margin:0;padding:2px;position:absolute;background:#f5f5f5;border:1px solid #979797;-moz-box-shadow:5px 5px 4px -4px #666;-webkit-box-shadow:2px 2px 2px #999;box-shadow:2px 2px 2px #999}.vakata-context ul{list-style:none;left:100%;margin-top:-2.7em;margin-left:-4px}.vakata-context .vakata-context-right ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context li{list-style:none;display:inline}.vakata-context li>a{display:block;padding:0 2em;text-decoration:none;width:auto;color:#000;white-space:nowrap;line-height:2.4em;-moz-text-shadow:1px 1px 0 #fff;-webkit-text-shadow:1px 1px 0 #fff;text-shadow:1px 1px 0 #fff;-moz-border-radius:1px;-webkit-border-radius:1px;border-radius:1px}.vakata-context li>a:hover{position:relative;background-color:#e8eff7;-moz-box-shadow:0 0 2px #0a6aa1;-webkit-box-shadow:0 0 2px #0a6aa1;box-shadow:0 0 2px #0a6aa1}.vakata-context li>a.vakata-context-parent{background-image:url();background-position:right center;background-repeat:no-repeat}.vakata-context li>a:focus{outline:0}.vakata-context .vakata-context-hover>a{position:relative;background-color:#e8eff7;-moz-box-shadow:0 0 2px #0a6aa1;-webkit-box-shadow:0 0 2px #0a6aa1;box-shadow:0 0 2px #0a6aa1}.vakata-context .vakata-context-separator a,.vakata-context .vakata-context-separator a:hover{background:#fff;border:0;border-top:1px solid #e2e3e3;height:1px;min-height:1px;max-height:1px;padding:0;margin:0 0 0 2.4em;border-left:1px solid #e0e0e0;-moz-text-shadow:0 0 0 transparent;-webkit-text-shadow:0 0 0 transparent;text-shadow:0 0 0 transparent;-moz-box-shadow:0 0 0 transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.vakata-context .vakata-contextmenu-disabled a,.vakata-context .vakata-contextmenu-disabled a:hover{color:silver;background-color:transparent;border:0;box-shadow:0 0 0}.vakata-context li>a>i{text-decoration:none;display:inline-block;width:2.4em;height:2.4em;background:0 0;margin:0 0 0 -2em;vertical-align:top;text-align:center;line-height:2.4em}.vakata-context li>a>i:empty{width:2.4em;line-height:2.4em}.vakata-context li>a .vakata-contextmenu-sep{display:inline-block;width:1px;height:2.4em;background:#fff;margin:0 .5em 0 0;border-left:1px solid #e2e3e3}.vakata-context .vakata-contextmenu-shortcut{font-size:.8em;color:silver;opacity:.5;display:none}.vakata-context-rtl ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context-rtl li>a.vakata-context-parent{background-image:url();background-position:left center;background-repeat:no-repeat}.vakata-context-rtl .vakata-context-separator>a{margin:0 2.4em 0 0;border-left:0;border-right:1px solid #e2e3e3}.vakata-context-rtl .vakata-context-left ul{right:auto;left:100%;margin-left:-4px;margin-right:auto}.vakata-context-rtl li>a>i{margin:0 -2em 0 0}.vakata-context-rtl li>a .vakata-contextmenu-sep{margin:0 0 0 .5em;border-left-color:#fff;background:#e2e3e3}#jstree-marker{position:absolute;top:0;left:0;margin:0;padding:0;border-right:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid;width:0;height:0;font-size:0;line-height:0}#jstree-dnd{line-height:16px;margin:0;padding:4px}#jstree-dnd .jstree-icon,#jstree-dnd .jstree-copy{display:inline-block;text-decoration:none;margin:0 2px 0 0;padding:0;width:16px;height:16px}#jstree-dnd .jstree-ok{background:green}#jstree-dnd .jstree-er{background:red}#jstree-dnd .jstree-copy{margin:0 2px}.jstree-default .jstree-node,.jstree-default .jstree-icon{background-repeat:no-repeat;background-color:transparent}.jstree-default .jstree-anchor,.jstree-default .jstree-wholerow{transition:background-color .15s,box-shadow .15s}.jstree-default .jstree-hovered{background:#e7f4f9;border-radius:2px;box-shadow:inset 0 0 1px #ccc}.jstree-default .jstree-clicked{background:#beebff;border-radius:2px;box-shadow:inset 0 0 1px #999}.jstree-default .jstree-no-icons .jstree-anchor>.jstree-themeicon{display:none}.jstree-default .jstree-disabled{background:0 0;color:#666}.jstree-default .jstree-disabled.jstree-hovered{background:0 0;box-shadow:none}.jstree-default .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default .jstree-disabled>.jstree-icon{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default .jstree-search{font-style:italic;color:#8b0000;font-weight:700}.jstree-default .jstree-no-checkboxes .jstree-checkbox{display:none!important}.jstree-default.jstree-checkbox-no-clicked .jstree-clicked{background:0 0;box-shadow:none}.jstree-default.jstree-checkbox-no-clicked .jstree-clicked.jstree-hovered{background:#e7f4f9}.jstree-default.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked{background:0 0}.jstree-default.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked.jstree-wholerow-hovered{background:#e7f4f9}#jstree-dnd.jstree-default .jstree-ok,#jstree-dnd.jstree-default .jstree-er{background-image:url(32px.png);background-repeat:no-repeat;background-color:transparent}#jstree-dnd.jstree-default i{background:0 0;width:16px;height:16px}#jstree-dnd.jstree-default .jstree-ok{background-position:-9px -71px}#jstree-dnd.jstree-default .jstree-er{background-position:-39px -71px}.jstree-default>.jstree-striped{background:url() left top repeat}.jstree-default>.jstree-wholerow-ul .jstree-hovered,.jstree-default>.jstree-wholerow-ul .jstree-clicked{background:0 0;box-shadow:none;border-radius:0}.jstree-default .jstree-wholerow{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.jstree-default .jstree-wholerow-hovered{background:#e7f4f9}.jstree-default .jstree-wholerow-clicked{background:#beebff;background:-moz-linear-gradient(top,#beebff 0,#a8e4ff 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#beebff),color-stop(100%,#a8e4ff));background:-webkit-linear-gradient(top,#beebff 0,#a8e4ff 100%);background:-o-linear-gradient(top,#beebff 0,#a8e4ff 100%);background:-ms-linear-gradient(top,#beebff 0,#a8e4ff 100%);background:linear-gradient(to bottom,#beebff 0,#a8e4ff 100%)}.jstree-default .jstree-node{min-height:24px;line-height:24px;margin-left:24px;min-width:24px}.jstree-default .jstree-anchor{line-height:24px;height:24px}.jstree-default .jstree-icon{width:24px;height:24px;line-height:24px}.jstree-default .jstree-icon:empty{width:24px;height:24px;line-height:24px}.jstree-default.jstree-rtl .jstree-node{margin-right:24px}.jstree-default .jstree-wholerow{height:24px}.jstree-default .jstree-node,.jstree-default .jstree-icon{background-image:url(32px.png)}.jstree-default .jstree-node{background-position:-292px -4px;background-repeat:repeat-y}.jstree-default .jstree-last{background:0 0}.jstree-default .jstree-open>.jstree-ocl{background-position:-132px -4px}.jstree-default .jstree-closed>.jstree-ocl{background-position:-100px -4px}.jstree-default .jstree-leaf>.jstree-ocl{background-position:-68px -4px}.jstree-default .jstree-anchor>.jstree-themeicon{background-position:-260px -4px}.jstree-default>.jstree-no-dots .jstree-node,.jstree-default>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-36px -4px}.jstree-default>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-4px -4px}.jstree-default .jstree-disabled{background:0 0}.jstree-default .jstree-disabled.jstree-hovered{background:0 0}.jstree-default .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default .jstree-checkbox{background-position:-164px -4px}.jstree-default .jstree-checkbox:hover{background-position:-164px -36px}.jstree-default .jstree-clicked>.jstree-checkbox{background-position:-228px -4px}.jstree-default .jstree-clicked>.jstree-checkbox:hover{background-position:-228px -36px}.jstree-default .jstree-anchor>.jstree-undetermined{background-position:-196px -4px}.jstree-default .jstree-anchor>.jstree-undetermined:hover{background-position:-196px -36px}.jstree-default>.jstree-striped{background-size:auto 48px}.jstree-default.jstree-rtl .jstree-node{background-image:url();background-position:100% 1px;background-repeat:repeat-y}.jstree-default.jstree-rtl .jstree-last{background:0 0}.jstree-default.jstree-rtl .jstree-open>.jstree-ocl{background-position:-132px -36px}.jstree-default.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-100px -36px}.jstree-default.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-68px -36px}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-node,.jstree-default.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-36px -36px}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-4px -36px}.jstree-default .jstree-themeicon-custom{background-color:transparent;background-image:none}.jstree-default>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url(throbber.gif) center center no-repeat}.jstree-default.jstree-rtl .jstree-node{background-image:url()}.jstree-default.jstree-rtl .jstree-last{background:0 0}.jstree-default-small .jstree-node{min-height:18px;line-height:18px;margin-left:18px;min-width:18px}.jstree-default-small .jstree-anchor{line-height:18px;height:18px}.jstree-default-small .jstree-icon{width:18px;height:18px;line-height:18px}.jstree-default-small .jstree-icon:empty{width:18px;height:18px;line-height:18px}.jstree-default-small.jstree-rtl .jstree-node{margin-right:18px}.jstree-default-small .jstree-wholerow{height:18px}.jstree-default-small .jstree-node,.jstree-default-small .jstree-icon{background-image:url(32px.png)}.jstree-default-small .jstree-node{background-position:-295px -7px;background-repeat:repeat-y}.jstree-default-small .jstree-last{background:0 0}.jstree-default-small .jstree-open>.jstree-ocl{background-position:-135px -7px}.jstree-default-small .jstree-closed>.jstree-ocl{background-position:-103px -7px}.jstree-default-small .jstree-leaf>.jstree-ocl{background-position:-71px -7px}.jstree-default-small .jstree-anchor>.jstree-themeicon{background-position:-263px -7px}.jstree-default-small>.jstree-no-dots .jstree-node,.jstree-default-small>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-small>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-39px -7px}.jstree-default-small>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-7px -7px}.jstree-default-small .jstree-disabled{background:0 0}.jstree-default-small .jstree-disabled.jstree-hovered{background:0 0}.jstree-default-small .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-small .jstree-checkbox{background-position:-167px -7px}.jstree-default-small .jstree-checkbox:hover{background-position:-167px -39px}.jstree-default-small .jstree-clicked>.jstree-checkbox{background-position:-231px -7px}.jstree-default-small .jstree-clicked>.jstree-checkbox:hover{background-position:-231px -39px}.jstree-default-small .jstree-anchor>.jstree-undetermined{background-position:-199px -7px}.jstree-default-small .jstree-anchor>.jstree-undetermined:hover{background-position:-199px -39px}.jstree-default-small>.jstree-striped{background-size:auto 36px}.jstree-default-small.jstree-rtl .jstree-node{background-image:url();background-position:100% 1px;background-repeat:repeat-y}.jstree-default-small.jstree-rtl .jstree-last{background:0 0}.jstree-default-small.jstree-rtl .jstree-open>.jstree-ocl{background-position:-135px -39px}.jstree-default-small.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-103px -39px}.jstree-default-small.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-71px -39px}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-node,.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-39px -39px}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-7px -39px}.jstree-default-small .jstree-themeicon-custom{background-color:transparent;background-image:none}.jstree-default-small>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url(throbber.gif) center center no-repeat}.jstree-default-small.jstree-rtl .jstree-node{background-image:url()}.jstree-default-small.jstree-rtl .jstree-last{background:0 0}.jstree-default-large .jstree-node{min-height:32px;line-height:32px;margin-left:32px;min-width:32px}.jstree-default-large .jstree-anchor{line-height:32px;height:32px}.jstree-default-large .jstree-icon{width:32px;height:32px;line-height:32px}.jstree-default-large .jstree-icon:empty{width:32px;height:32px;line-height:32px}.jstree-default-large.jstree-rtl .jstree-node{margin-right:32px}.jstree-default-large .jstree-wholerow{height:32px}.jstree-default-large .jstree-node,.jstree-default-large .jstree-icon{background-image:url(32px.png)}.jstree-default-large .jstree-node{background-position:-288px 0;background-repeat:repeat-y}.jstree-default-large .jstree-last{background:0 0}.jstree-default-large .jstree-open>.jstree-ocl{background-position:-128px 0}.jstree-default-large .jstree-closed>.jstree-ocl{background-position:-96px 0}.jstree-default-large .jstree-leaf>.jstree-ocl{background-position:-64px 0}.jstree-default-large .jstree-anchor>.jstree-themeicon{background-position:-256px 0}.jstree-default-large>.jstree-no-dots .jstree-node,.jstree-default-large>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-large>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-32px 0}.jstree-default-large>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:0 0}.jstree-default-large .jstree-disabled{background:0 0}.jstree-default-large .jstree-disabled.jstree-hovered{background:0 0}.jstree-default-large .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-large .jstree-checkbox{background-position:-160px 0}.jstree-default-large .jstree-checkbox:hover{background-position:-160px -32px}.jstree-default-large .jstree-clicked>.jstree-checkbox{background-position:-224px 0}.jstree-default-large .jstree-clicked>.jstree-checkbox:hover{background-position:-224px -32px}.jstree-default-large .jstree-anchor>.jstree-undetermined{background-position:-192px 0}.jstree-default-large .jstree-anchor>.jstree-undetermined:hover{background-position:-192px -32px}.jstree-default-large>.jstree-striped{background-size:auto 64px}.jstree-default-large.jstree-rtl .jstree-node{background-image:url();background-position:100% 1px;background-repeat:repeat-y}.jstree-default-large.jstree-rtl .jstree-last{background:0 0}.jstree-default-large.jstree-rtl .jstree-open>.jstree-ocl{background-position:-128px -32px}.jstree-default-large.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-96px -32px}.jstree-default-large.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-64px -32px}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-node,.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-32px -32px}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:0 -32px}.jstree-default-large .jstree-themeicon-custom{background-color:transparent;background-image:none}.jstree-default-large>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url(throbber.gif) center center no-repeat}.jstree-default-large.jstree-rtl .jstree-node{background-image:url()}.jstree-default-large.jstree-rtl .jstree-last{background:0 0}@media (max-width:768px){.jstree-default-responsive .jstree-icon{background-image:url(40px.png)}.jstree-default-responsive .jstree-node,.jstree-default-responsive .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-responsive .jstree-node{min-height:40px;line-height:40px;margin-left:40px;min-width:40px;white-space:nowrap}.jstree-default-responsive .jstree-anchor{line-height:40px;height:40px}.jstree-default-responsive .jstree-icon,.jstree-default-responsive .jstree-icon:empty{width:40px;height:40px;line-height:40px}.jstree-default-responsive>.jstree-container-ul>.jstree-node{margin-left:0}.jstree-default-responsive.jstree-rtl .jstree-node{margin-left:0;margin-right:40px}.jstree-default-responsive.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-default-responsive .jstree-ocl,.jstree-default-responsive .jstree-themeicon,.jstree-default-responsive .jstree-checkbox{background-size:120px 200px}.jstree-default-responsive .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-responsive .jstree-open>.jstree-ocl{background-position:0 0!important}.jstree-default-responsive .jstree-closed>.jstree-ocl{background-position:0 -40px!important}.jstree-default-responsive.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-40px 0!important}.jstree-default-responsive .jstree-anchor>.jstree-themeicon{background-position:-40px -40px}.jstree-default-responsive .jstree-checkbox,.jstree-default-responsive .jstree-checkbox:hover{background-position:-40px -80px}.jstree-default-responsive .jstree-clicked>.jstree-checkbox,.jstree-default-responsive .jstree-clicked>.jstree-checkbox:hover{background-position:0 -80px}.jstree-default-responsive .jstree-anchor>.jstree-undetermined,.jstree-default-responsive .jstree-anchor>.jstree-undetermined:hover{background-position:0 -120px}.jstree-default-responsive .jstree-anchor{font-weight:700;font-size:1.1em;text-shadow:1px 1px #fff}.jstree-default-responsive>.jstree-striped{background:0 0}.jstree-default-responsive .jstree-wholerow{border-top:1px solid rgba(255,255,255,.7);border-bottom:1px solid rgba(64,64,64,.2);background:#ebebeb;height:40px}.jstree-default-responsive .jstree-wholerow-hovered{background:#e7f4f9}.jstree-default-responsive .jstree-wholerow-clicked{background:#beebff}.jstree-default-responsive .jstree-children .jstree-last>.jstree-wholerow{box-shadow:inset 0 -6px 3px -5px #666}.jstree-default-responsive .jstree-children .jstree-open>.jstree-wholerow{box-shadow:inset 0 6px 3px -5px #666;border-top:0}.jstree-default-responsive .jstree-children .jstree-open+.jstree-open{box-shadow:none}.jstree-default-responsive .jstree-node,.jstree-default-responsive .jstree-icon,.jstree-default-responsive .jstree-node>.jstree-ocl,.jstree-default-responsive .jstree-themeicon,.jstree-default-responsive .jstree-checkbox{background-image:url(40px.png);background-size:120px 200px}.jstree-default-responsive .jstree-node{background-position:-80px 0;background-repeat:repeat-y}.jstree-default-responsive .jstree-last{background:0 0}.jstree-default-responsive .jstree-leaf>.jstree-ocl{background-position:-40px -120px}.jstree-default-responsive .jstree-last>.jstree-ocl{background-position:-40px -160px}.jstree-default-responsive .jstree-themeicon-custom{background-color:transparent;background-image:none}}.jstree-default>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}.tableelem{padding-left:10px;padding-right:10px;padding-bottom:2px;padding-top:2px;border-width:2px;border-color:#fff;background-color:#E0E0E0}.tableheader{background-color:silver}.bokehtable form table tr td{padding:2px}.bokehtable form table tr td input{padding:0}.bokehtable table tr td{padding:2px}svg{font:12px sans-serif;margin:0}.ui-dialog-titlebar{height:16px}.button_bar{overflow:hidden;margin-top:5px;margin-bottom:5px;padding-top:5px;padding-bottom:5px}.grid_plot .button_bar{display:none}.bokeh_canvas_wrapper{position:relative;font-size:12pt}.bokeh_canvas{position:absolute;font-size:12pt}.bokeh_canvas_wrapper .bokeh_gmap{position:absolute!important;z-index:-5}.plotview{clear:both}.bokeh_canvas_wrapper{position:relative;font-size:12pt;float:left}.bokeh_canvas{position:absolute;font-size:12pt}.bokeh_tooltip:before{position:absolute;top:40%;width:0;height:0;left:-9px;border-style:solid;border-width:7px 10px 7px 0;border-color:transparent #1e4B6c transparent transparent;content:" ";display:block}.bokeh_tooltip{position:absolute;padding:5px;background-color:#1e4B6c;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;pointer-events:none}.bokeh_tooltip_row_label{font-family:Helvetica,sans-serif;color:#9ab9b1;text-align:right}.bokeh_tooltip_row_value{font-family:Helvetica,sans-serif;color:#e2ddbd}.bokeh_tooltip_color_block{width:12px;height:12px;margin-left:5px;margin-right:5px;outline:#ddd solid 1px;display:inline-block}.bokeh_gmap{border:0;position:absolute;z-index:-5}.shading{display:block;border:1px dashed green;position:absolute;z-index:100}.gridplot_container{position:relative}.gridplot_container .gp_plotwrapper{position:absolute}button.active{border:1px solid #00f}.table_wrap table{margin:5px;height:300px;display:block;overflow-y:scroll}.plot_wrap .button_bar{height:30px}.plot_wrap .button_bar *{display:none}.plot_wrap:hover .button_bar *{display:inherit}.maximize{display:none;float:right}.plotclose{float:right}.plotsidebar{overflow-x:auto;width:350px;float:left}.maxplot{float:left}.bokehtable{overflow:auto}.pandassize,.pandasoffset{width:30px!important;height:20px!important;padding:1px!important}.hide{display:none}.pandasicons{position:relative;top:5px}.bokehdocheading{background-color:#ccc}.bokehdocheading:hover>.bokehdelete{display:none;float:right}.bokehdelete{float:right}.pandasgroup{width:auto;height:20px!important;padding:1px!important}.pandasagg{width:auto;height:20px!important;padding:1px!important}.tablecontrolstate{width:auto;height:20px!important;padding:1px!important}.paginatedisplay{overflow:hidden}.pagination{margin:0!important}.tablecontrolform{margin:0}.computedtxtbox,.computedname,.search{height:20px!important;padding:1px!important}.plottitle{padding-left:50px;padding-bottom:10px}.dataslider{margin-top:10px;margin-bottom:10px;margin-left:5px;margin-right:5px;width:20px}.maxlabel,.minlabel{margin-top:10px;margin-bottom:10px}.jsp{overflow:hidden}.jstree-default .jstree-node,.jstree-default .jstree-icon{background-image:url("")}.jstree-default .jstree-last{background:0 0}.bk-hbox{display:-webkit-box;-webkit-box-orient:horizontal;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:horizontal;-moz-box-align:stretch;display:box;box-orient:horizontal;box-align:stretch;-webkit-box-flex:0;-moz-box-flex:0;box-flex:0}.bk-vbox{display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;-webkit-box-flex:0;-moz-box-flex:0;box-flex:0}.bk-widget-form{padding:30px;overflow:hidden}.bk-widget-form-group{margin-bottom:15px}.bk-widget-form-input{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.bk-widget-form-input:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.bk-widget-form-input::-moz-placeholder{color:#999;opacity:1}.bk-widget-form-input:-ms-input-placeholder{color:#999}.bk-widget-form-input::-webkit-input-placeholder{color:#999}.bk-widget-form-input[disabled],.bk-widget-form-input[readonly],fieldset[disabled] .bk-widget-form-input{cursor:not-allowed;background-color:#eee;opacity:1}textarea.bk-widget-form-input{height:auto}.bk-slider-horizontal{width:100%;min-width:200px;height:50px}.bk-slider-vertical{height:100%;min-height:200px;width:50px}
            /* END /Users/cyrus/anaconda/lib/python2.7/site-packages/bokeh/server/static/css/bokeh.min.css */
        </style>
        <script type="text/javascript">
            /* BEGIN /Users/cyrus/anaconda/lib/python2.7/site-packages/bokeh/server/static/js/bokeh.min.js */
            /**
             * @license almond 0.2.9 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
             * Available via the MIT or new BSD license.
             * see: http://github.com/jrburke/almond for details
             */
            
            //     Underscore.js 1.5.2
            //     http://underscorejs.org
            //     (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
            //     Underscore may be freely distributed under the MIT license.
            
            /*!
             * jQuery JavaScript Library v2.0.3
             * http://jquery.com/
             *
             * Includes Sizzle.js
             * http://sizzlejs.com/
             *
             * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
             * Released under the MIT license
             * http://jquery.org/license
             *
             * Date: 2013-07-03T13:30Z
             */
            
            /*!
             * Sizzle CSS Selector Engine v1.9.4-pre
             * http://sizzlejs.com/
             *
             * Copyright 2013 jQuery Foundation, Inc. and other contributors
             * Released under the MIT license
             * http://jquery.org/license
             *
             * Date: 2013-06-03
             */
            
            //     (c) 2010-2011 Jeremy Ashkenas, DocumentCloud Inc.
            //     (c) 2011-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
            //     Backbone may be freely distributed under the MIT license.
            //     For all details and documentation:
            //     http://backbonejs.org
            
            /*
             (c) 2013, Vladimir Agafonkin
             RBush, a JavaScript library for high-performance 2D spatial indexing of points and rectangles.
             https://github.com/mourner/rbush
            */
            
            /*! sprintf.js | Copyright (c) 2007-2013 Alexandru Marasteanu <hello at alexei dot ro> | 3 clause BSD license */
            
            /* =========================================================
             * bootstrap-modal.js v2.0.4
             * http://twitter.github.com/bootstrap/javascript.html#modals
             * =========================================================
             * Copyright 2012 Twitter, Inc.
             *
             * Licensed under the Apache License, Version 2.0 (the "License");
             * you may not use this file except in compliance with the License.
             * You may obtain a copy of the License at
             *
             * http://www.apache.org/licenses/LICENSE-2.0
             *
             * Unless required by applicable law or agreed to in writing, software
             * distributed under the License is distributed on an "AS IS" BASIS,
             * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
             * See the License for the specific language governing permissions and
             * limitations under the License.
             * ========================================================= */
            
            /*!
             * jsTree 3.0.0
             * http://jstree.com/
             *
             * Copyright (c) 2013 Ivan Bozhanov (http://vakata.com)
             *
             * Licensed same as jquery - under the terms of the MIT License
             *   http://www.opensource.org/licenses/mit-license.php
             */
            
            /*!
             * if using jslint please allow for the jQuery global and use following options: 
             * jslint: browser: true, ass: true, bitwise: true, continue: true, nomen: true, plusplus: true, regexp: true, unparam: true, todo: true, white: true
             */
            
            /*!
            								if(o && o.id && o.id !== '#') {
            									// this.edit(o);
            								}
            								*/
            
            /*!
            					'themes' : {
            						'name' : this.get_theme(),
            						'icons' : this._data.core.themes.icons,
            						'dots' : this._data.core.themes.dots
            					},
            					*/
            
            /*!
            					if(state.core.themes) {
            						if(state.core.themes.name) {
            							this.set_theme(state.core.themes.name);
            						}
            						if(typeof state.core.themes.dots !== 'undefined') {
            							this[ state.core.themes.dots ? "show_dots" : "hide_dots" ]();
            						}
            						if(typeof state.core.themes.icons !== 'undefined') {
            							this[ state.core.themes.icons ? "show_icons" : "hide_icons" ]();
            						}
            						delete state.core.themes;
            						delete state.core.open;
            						this.set_state(state, callback);
            						return false;
            					}
            					*/
            
            /*!
            				oi = obj.children("i:visible"),
            				ai = a.children("i:visible"),
            				w1 = oi.width() * oi.length,
            				w2 = ai.width() * ai.length,
            				*/
            
            /*!
            								// TODO: moving inside, but the node is not yet loaded?
            								// the check will work anyway, as when moving the node will be loaded first and checked again
            								if(v === 'i' && !ins.is_loaded(p)) { }
            								*/
            
            /*!
             * jQuery UI Core 1.10.0
             * http://jqueryui.com
             *
             * Copyright 2013 jQuery Foundation and other contributors
             * Released under the MIT license.
             * http://jquery.org/license
             *
             * http://api.jqueryui.com/category/ui-core/
             */
            
            /*!
             * jQuery UI Widget 1.10.0
             * http://jqueryui.com
             *
             * Copyright 2013 jQuery Foundation and other contributors
             * Released under the MIT license.
             * http://jquery.org/license
             *
             * http://api.jqueryui.com/jQuery.widget/
             */
            
            /*!
             * jQuery UI Mouse 1.10.0
             * http://jqueryui.com
             *
             * Copyright 2013 jQuery Foundation and other contributors
             * Released under the MIT license.
             * http://jquery.org/license
             *
             * http://api.jqueryui.com/mouse/
             *
             * Depends:
             *	jquery.ui.widget.js
             */
            
            /*!
             * jQuery UI Slider 1.10.0
             * http://jqueryui.com
             *
             * Copyright 2013 jQuery Foundation and other contributors
             * Released under the MIT license.
             * http://jquery.org/license
             *
             * http://api.jqueryui.com/slider/
             *
             * Depends:
             *	jquery.ui.core.js
             *	jquery.ui.mouse.js
             *	jquery.ui.widget.js
             */
            
            !function(t,e){t.Bokeh=e()}(this,function(){var t,e,n;return function(r){function i(t,e){return b.call(t,e)}function o(t,e){var n,r,i,o,s,a,l,c,u,h,p,d=e&&e.split("/"),_=v.map,f=_&&_["*"]||{};if(t&&"."===t.charAt(0))if(e){for(d=d.slice(0,d.length-1),t=t.split("/"),s=t.length-1,v.nodeIdCompat&&x.test(t[s])&&(t[s]=t[s].replace(x,"")),t=d.concat(t),u=0;u<t.length;u+=1)if(p=t[u],"."===p)t.splice(u,1),u-=1;else if(".."===p){if(1===u&&(".."===t[2]||".."===t[0]))break;u>0&&(t.splice(u-1,2),u-=2)}t=t.join("/")}else 0===t.indexOf("./")&&(t=t.substring(2));if((d||f)&&_){for(n=t.split("/"),u=n.length;u>0;u-=1){if(r=n.slice(0,u).join("/"),d)for(h=d.length;h>0;h-=1)if(i=_[d.slice(0,h).join("/")],i&&(i=i[r])){o=i,a=u;break}if(o)break;!l&&f&&f[r]&&(l=f[r],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),t=n.join("/"))}return t}function s(t,e){return function(){return d.apply(r,w.call(arguments,0).concat([t,e]))}}function a(t){return function(e){return o(e,t)}}function l(t){return function(e){g[t]=e}}function c(t){if(i(m,t)){var e=m[t];delete m[t],y[t]=!0,p.apply(r,e)}if(!i(g,t)&&!i(y,t))throw new Error("No "+t);return g[t]}function u(t){var e,n=t?t.indexOf("!"):-1;return n>-1&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function h(t){return function(){return v&&v.config&&v.config[t]||{}}}var p,d,_,f,g={},m={},v={},y={},b=Object.prototype.hasOwnProperty,w=[].slice,x=/\.js$/;_=function(t,e){var n,r=u(t),i=r[0];return t=r[1],i&&(i=o(i,e),n=c(i)),i?t=n&&n.normalize?n.normalize(t,a(e)):o(t,e):(t=o(t,e),r=u(t),i=r[0],t=r[1],i&&(n=c(i))),{f:i?i+"!"+t:t,n:t,pr:i,p:n}},f={require:function(t){return s(t)},exports:function(t){var e=g[t];return"undefined"!=typeof e?e:g[t]={}},module:function(t){return{id:t,uri:"",exports:g[t],config:h(t)}}},p=function(t,e,n,o){var a,u,h,p,d,v,b=[],w=typeof n;if(o=o||t,"undefined"===w||"function"===w){for(e=!e.length&&n.length?["require","exports","module"]:e,d=0;d<e.length;d+=1)if(p=_(e[d],o),u=p.f,"require"===u)b[d]=f.require(t);else if("exports"===u)b[d]=f.exports(t),v=!0;else if("module"===u)a=b[d]=f.module(t);else if(i(g,u)||i(m,u)||i(y,u))b[d]=c(u);else{if(!p.p)throw new Error(t+" missing "+u);p.p.load(p.n,s(o,!0),l(u),{}),b[d]=g[u]}h=n?n.apply(g[t],b):void 0,t&&(a&&a.exports!==r&&a.exports!==g[t]?g[t]=a.exports:h===r&&v||(g[t]=h))}else t&&(g[t]=n)},t=e=d=function(t,e,n,i,o){if("string"==typeof t)return f[t]?f[t](e):c(_(t,e).f);if(!t.splice){if(v=t,v.deps&&d(v.deps,v.callback),!e)return;e.splice?(t=e,e=n,n=null):t=r}return e=e||function(){},"function"==typeof n&&(n=i,i=o),i?p(r,t,e,n):setTimeout(function(){p(r,t,e,n)},4),d},d.config=function(t){return d(t)},t._defined=g,n=function(t,e,n){e.splice||(n=e,e=[]),i(g,t)||i(m,t)||(m[t]=[t,e,n])},n.amd={jQuery:!0}}(),n("vendor/almond/almond",function(){}),function(){var t=this,e=t._,r={},i=Array.prototype,o=Object.prototype,s=Function.prototype,a=i.push,l=i.slice,c=i.concat,u=o.toString,h=o.hasOwnProperty,p=i.forEach,d=i.map,_=i.reduce,f=i.reduceRight,g=i.filter,m=i.every,v=i.some,y=i.indexOf,b=i.lastIndexOf,w=Array.isArray,x=Object.keys,k=s.bind,j=function(t){return t instanceof j?t:this instanceof j?(this._wrapped=t,void 0):new j(t)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=j),exports._=j):t._=j,j.VERSION="1.5.2";var C=j.each=j.forEach=function(t,e,n){if(null!=t)if(p&&t.forEach===p)t.forEach(e,n);else if(t.length===+t.length){for(var i=0,o=t.length;o>i;i++)if(e.call(n,t[i],i,t)===r)return}else for(var s=j.keys(t),i=0,o=s.length;o>i;i++)if(e.call(n,t[s[i]],s[i],t)===r)return};j.map=j.collect=function(t,e,n){var r=[];return null==t?r:d&&t.map===d?t.map(e,n):(C(t,function(t,i,o){r.push(e.call(n,t,i,o))}),r)};var T="Reduce of empty array with no initial value";j.reduce=j.foldl=j.inject=function(t,e,n,r){var i=arguments.length>2;if(null==t&&(t=[]),_&&t.reduce===_)return r&&(e=j.bind(e,r)),i?t.reduce(e,n):t.reduce(e);if(C(t,function(t,o,s){i?n=e.call(r,n,t,o,s):(n=t,i=!0)}),!i)throw new TypeError(T);return n},j.reduceRight=j.foldr=function(t,e,n,r){var i=arguments.length>2;if(null==t&&(t=[]),f&&t.reduceRight===f)return r&&(e=j.bind(e,r)),i?t.reduceRight(e,n):t.reduceRight(e);var o=t.length;if(o!==+o){var s=j.keys(t);o=s.length}if(C(t,function(a,l,c){l=s?s[--o]:--o,i?n=e.call(r,n,t[l],l,c):(n=t[l],i=!0)}),!i)throw new TypeError(T);return n},j.find=j.detect=function(t,e,n){var r;return M(t,function(t,i,o){return e.call(n,t,i,o)?(r=t,!0):void 0}),r},j.filter=j.select=function(t,e,n){var r=[];return null==t?r:g&&t.filter===g?t.filter(e,n):(C(t,function(t,i,o){e.call(n,t,i,o)&&r.push(t)}),r)},j.reject=function(t,e,n){return j.filter(t,function(t,r,i){return!e.call(n,t,r,i)},n)},j.every=j.all=function(t,e,n){e||(e=j.identity);var i=!0;return null==t?i:m&&t.every===m?t.every(e,n):(C(t,function(t,o,s){return(i=i&&e.call(n,t,o,s))?void 0:r}),!!i)};var M=j.some=j.any=function(t,e,n){e||(e=j.identity);var i=!1;return null==t?i:v&&t.some===v?t.some(e,n):(C(t,function(t,o,s){return i||(i=e.call(n,t,o,s))?r:void 0}),!!i)};j.contains=j.include=function(t,e){return null==t?!1:y&&t.indexOf===y?-1!=t.indexOf(e):M(t,function(t){return t===e})},j.invoke=function(t,e){var n=l.call(arguments,2),r=j.isFunction(e);return j.map(t,function(t){return(r?e:t[e]).apply(t,n)})},j.pluck=function(t,e){return j.map(t,function(t){return t[e]})},j.where=function(t,e,n){return j.isEmpty(e)?n?void 0:[]:j[n?"find":"filter"](t,function(t){for(var n in e)if(e[n]!==t[n])return!1;return!0})},j.findWhere=function(t,e){return j.where(t,e,!0)},j.max=function(t,e,n){if(!e&&j.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.max.apply(Math,t);if(!e&&j.isEmpty(t))return-1/0;var r={computed:-1/0,value:-1/0};return C(t,function(t,i,o){var s=e?e.call(n,t,i,o):t;s>r.computed&&(r={value:t,computed:s})}),r.value},j.min=function(t,e,n){if(!e&&j.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.min.apply(Math,t);if(!e&&j.isEmpty(t))return 1/0;var r={computed:1/0,value:1/0};return C(t,function(t,i,o){var s=e?e.call(n,t,i,o):t;s<r.computed&&(r={value:t,computed:s})}),r.value},j.shuffle=function(t){var e,n=0,r=[];return C(t,function(t){e=j.random(n++),r[n-1]=r[e],r[e]=t}),r},j.sample=function(t,e,n){return arguments.length<2||n?t[j.random(t.length-1)]:j.shuffle(t).slice(0,Math.max(0,e))};var N=function(t){return j.isFunction(t)?t:function(e){return e[t]}};j.sortBy=function(t,e,n){var r=N(e);return j.pluck(j.map(t,function(t,e,i){return{value:t,index:e,criteria:r.call(n,t,e,i)}}).sort(function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(r>n||void 0===r)return-1}return t.index-e.index}),"value")};var S=function(t){return function(e,n,r){var i={},o=null==n?j.identity:N(n);return C(e,function(n,s){var a=o.call(r,n,s,e);t(i,a,n)}),i}};j.groupBy=S(function(t,e,n){(j.has(t,e)?t[e]:t[e]=[]).push(n)}),j.indexBy=S(function(t,e,n){t[e]=n}),j.countBy=S(function(t,e){j.has(t,e)?t[e]++:t[e]=1}),j.sortedIndex=function(t,e,n,r){n=null==n?j.identity:N(n);for(var i=n.call(r,e),o=0,s=t.length;s>o;){var a=o+s>>>1;n.call(r,t[a])<i?o=a+1:s=a}return o},j.toArray=function(t){return t?j.isArray(t)?l.call(t):t.length===+t.length?j.map(t,j.identity):j.values(t):[]},j.size=function(t){return null==t?0:t.length===+t.length?t.length:j.keys(t).length},j.first=j.head=j.take=function(t,e,n){return null==t?void 0:null==e||n?t[0]:l.call(t,0,e)},j.initial=function(t,e,n){return l.call(t,0,t.length-(null==e||n?1:e))},j.last=function(t,e,n){return null==t?void 0:null==e||n?t[t.length-1]:l.call(t,Math.max(t.length-e,0))},j.rest=j.tail=j.drop=function(t,e,n){return l.call(t,null==e||n?1:e)},j.compact=function(t){return j.filter(t,j.identity)};var A=function(t,e,n){return e&&j.every(t,j.isArray)?c.apply(n,t):(C(t,function(t){j.isArray(t)||j.isArguments(t)?e?a.apply(n,t):A(t,e,n):n.push(t)}),n)};j.flatten=function(t,e){return A(t,e,[])},j.without=function(t){return j.difference(t,l.call(arguments,1))},j.uniq=j.unique=function(t,e,n,r){j.isFunction(e)&&(r=n,n=e,e=!1);var i=n?j.map(t,n,r):t,o=[],s=[];return C(i,function(n,r){(e?r&&s[s.length-1]===n:j.contains(s,n))||(s.push(n),o.push(t[r]))}),o},j.union=function(){return j.uniq(j.flatten(arguments,!0))},j.intersection=function(t){var e=l.call(arguments,1);return j.filter(j.uniq(t),function(t){return j.every(e,function(e){return j.indexOf(e,t)>=0})})},j.difference=function(t){var e=c.apply(i,l.call(arguments,1));return j.filter(t,function(t){return!j.contains(e,t)})},j.zip=function(){for(var t=j.max(j.pluck(arguments,"length").concat(0)),e=new Array(t),n=0;t>n;n++)e[n]=j.pluck(arguments,""+n);return e},j.object=function(t,e){if(null==t)return{};for(var n={},r=0,i=t.length;i>r;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n},j.indexOf=function(t,e,n){if(null==t)return-1;var r=0,i=t.length;if(n){if("number"!=typeof n)return r=j.sortedIndex(t,e),t[r]===e?r:-1;r=0>n?Math.max(0,i+n):n}if(y&&t.indexOf===y)return t.indexOf(e,n);for(;i>r;r++)if(t[r]===e)return r;return-1},j.lastIndexOf=function(t,e,n){if(null==t)return-1;var r=null!=n;if(b&&t.lastIndexOf===b)return r?t.lastIndexOf(e,n):t.lastIndexOf(e);for(var i=r?n:t.length;i--;)if(t[i]===e)return i;return-1},j.range=function(t,e,n){arguments.length<=1&&(e=t||0,t=0),n=arguments[2]||1;for(var r=Math.max(Math.ceil((e-t)/n),0),i=0,o=new Array(r);r>i;)o[i++]=t,t+=n;return o};var E=function(){};j.bind=function(t,e){var n,r;if(k&&t.bind===k)return k.apply(t,l.call(arguments,1));if(!j.isFunction(t))throw new TypeError;return n=l.call(arguments,2),r=function(){if(!(this instanceof r))return t.apply(e,n.concat(l.call(arguments)));E.prototype=t.prototype;var i=new E;E.prototype=null;var o=t.apply(i,n.concat(l.call(arguments)));return Object(o)===o?o:i}},j.partial=function(t){var e=l.call(arguments,1);return function(){return t.apply(this,e.concat(l.call(arguments)))}},j.bindAll=function(t){var e=l.call(arguments,1);if(0===e.length)throw new Error("bindAll must be passed function names");return C(e,function(e){t[e]=j.bind(t[e],t)}),t},j.memoize=function(t,e){var n={};return e||(e=j.identity),function(){var r=e.apply(this,arguments);return j.has(n,r)?n[r]:n[r]=t.apply(this,arguments)}},j.delay=function(t,e){var n=l.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},j.defer=function(t){return j.delay.apply(j,[t,1].concat(l.call(arguments,1)))},j.throttle=function(t,e,n){var r,i,o,s=null,a=0;n||(n={});var l=function(){a=n.leading===!1?0:new Date,s=null,o=t.apply(r,i)};return function(){var c=new Date;a||n.leading!==!1||(a=c);var u=e-(c-a);return r=this,i=arguments,0>=u?(clearTimeout(s),s=null,a=c,o=t.apply(r,i)):s||n.trailing===!1||(s=setTimeout(l,u)),o}},j.debounce=function(t,e,n){var r,i,o,s,a;return function(){o=this,i=arguments,s=new Date;var l=function(){var c=new Date-s;e>c?r=setTimeout(l,e-c):(r=null,n||(a=t.apply(o,i)))},c=n&&!r;return r||(r=setTimeout(l,e)),c&&(a=t.apply(o,i)),a}},j.once=function(t){var e,n=!1;return function(){return n?e:(n=!0,e=t.apply(this,arguments),t=null,e)}},j.wrap=function(t,e){return function(){var n=[t];return a.apply(n,arguments),e.apply(this,n)}},j.compose=function(){var t=arguments;return function(){for(var e=arguments,n=t.length-1;n>=0;n--)e=[t[n].apply(this,e)];return e[0]}},j.after=function(t,e){return function(){return--t<1?e.apply(this,arguments):void 0}},j.keys=x||function(t){if(t!==Object(t))throw new TypeError("Invalid object");var e=[];for(var n in t)j.has(t,n)&&e.push(n);return e},j.values=function(t){for(var e=j.keys(t),n=e.length,r=new Array(n),i=0;n>i;i++)r[i]=t[e[i]];return r},j.pairs=function(t){for(var e=j.keys(t),n=e.length,r=new Array(n),i=0;n>i;i++)r[i]=[e[i],t[e[i]]];return r},j.invert=function(t){for(var e={},n=j.keys(t),r=0,i=n.length;i>r;r++)e[t[n[r]]]=n[r];return e},j.functions=j.methods=function(t){var e=[];for(var n in t)j.isFunction(t[n])&&e.push(n);return e.sort()},j.extend=function(t){return C(l.call(arguments,1),function(e){if(e)for(var n in e)t[n]=e[n]}),t},j.pick=function(t){var e={},n=c.apply(i,l.call(arguments,1));return C(n,function(n){n in t&&(e[n]=t[n])}),e},j.omit=function(t){var e={},n=c.apply(i,l.call(arguments,1));for(var r in t)j.contains(n,r)||(e[r]=t[r]);return e},j.defaults=function(t){return C(l.call(arguments,1),function(e){if(e)for(var n in e)void 0===t[n]&&(t[n]=e[n])}),t},j.clone=function(t){return j.isObject(t)?j.isArray(t)?t.slice():j.extend({},t):t},j.tap=function(t,e){return e(t),t};var O=function(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof j&&(t=t._wrapped),e instanceof j&&(e=e._wrapped);var i=u.call(t);if(i!=u.call(e))return!1;switch(i){case"[object String]":return t==String(e);case"[object Number]":return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object RegExp]":return t.source==e.source&&t.global==e.global&&t.multiline==e.multiline&&t.ignoreCase==e.ignoreCase}if("object"!=typeof t||"object"!=typeof e)return!1;for(var o=n.length;o--;)if(n[o]==t)return r[o]==e;var s=t.constructor,a=e.constructor;if(s!==a&&!(j.isFunction(s)&&s instanceof s&&j.isFunction(a)&&a instanceof a))return!1;n.push(t),r.push(e);var l=0,c=!0;if("[object Array]"==i){if(l=t.length,c=l==e.length)for(;l--&&(c=O(t[l],e[l],n,r)););}else{for(var h in t)if(j.has(t,h)&&(l++,!(c=j.has(e,h)&&O(t[h],e[h],n,r))))break;if(c){for(h in e)if(j.has(e,h)&&!l--)break;c=!l}}return n.pop(),r.pop(),c};j.isEqual=function(t,e){return O(t,e,[],[])},j.isEmpty=function(t){if(null==t)return!0;if(j.isArray(t)||j.isString(t))return 0===t.length;for(var e in t)if(j.has(t,e))return!1;return!0},j.isElement=function(t){return!(!t||1!==t.nodeType)},j.isArray=w||function(t){return"[object Array]"==u.call(t)},j.isObject=function(t){return t===Object(t)},C(["Arguments","Function","String","Number","Date","RegExp"],function(t){j["is"+t]=function(e){return u.call(e)=="[object "+t+"]"}}),j.isArguments(arguments)||(j.isArguments=function(t){return!(!t||!j.has(t,"callee"))}),"function"!=typeof/./&&(j.isFunction=function(t){return"function"==typeof t}),j.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},j.isNaN=function(t){return j.isNumber(t)&&t!=+t},j.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"==u.call(t)},j.isNull=function(t){return null===t},j.isUndefined=function(t){return void 0===t},j.has=function(t,e){return h.call(t,e)},j.noConflict=function(){return t._=e,this},j.identity=function(t){return t},j.times=function(t,e,n){for(var r=Array(Math.max(0,t)),i=0;t>i;i++)r[i]=e.call(n,i);return r},j.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))};var P={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"}};P.unescape=j.invert(P.escape);var z={escape:new RegExp("["+j.keys(P.escape).join("")+"]","g"),unescape:new RegExp("("+j.keys(P.unescape).join("|")+")","g")};j.each(["escape","unescape"],function(t){j[t]=function(e){return null==e?"":(""+e).replace(z[t],function(e){return P[t][e]})}}),j.result=function(t,e){if(null==t)return void 0;var n=t[e];return j.isFunction(n)?n.call(t):n},j.mixin=function(t){C(j.functions(t),function(e){var n=j[e]=t[e];j.prototype[e]=function(){var t=[this._wrapped];return a.apply(t,arguments),B.call(this,n.apply(j,t))}})};var D=0;j.uniqueId=function(t){var e=++D+"";return t?t+e:e},j.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var F=/(.)^/,$={"'":"'","\\":"\\","\r":"r","\n":"n","	":"t","\u2028":"u2028","\u2029":"u2029"},q=/\\|'|\r|\n|\t|\u2028|\u2029/g;j.template=function(t,e,n){var r;n=j.defaults({},n,j.templateSettings);var i=new RegExp([(n.escape||F).source,(n.interpolate||F).source,(n.evaluate||F).source].join("|")+"|$","g"),o=0,s="__p+='";t.replace(i,function(e,n,r,i,a){return s+=t.slice(o,a).replace(q,function(t){return"\\"+$[t]}),n&&(s+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'"),r&&(s+="'+\n((__t=("+r+"))==null?'':__t)+\n'"),i&&(s+="';\n"+i+"\n__p+='"),o=a+e.length,e}),s+="';\n",n.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{r=new Function(n.variable||"obj","_",s)}catch(a){throw a.source=s,a}if(e)return r(e,j);var l=function(t){return r.call(this,t,j)};return l.source="function("+(n.variable||"obj")+"){\n"+s+"}",l},j.chain=function(t){return j(t).chain()};var B=function(t){return this._chain?j(t).chain():t};j.mixin(j),C(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=i[t];j.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!=t&&"splice"!=t||0!==n.length||delete n[0],B.call(this,n)}}),C(["concat","join","slice"],function(t){var e=i[t];j.prototype[t]=function(){return B.call(this,e.apply(this._wrapped,arguments))}}),j.extend(j.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}}),"function"==typeof n&&n.amd&&n("underscore",[],function(){return j})}.call(this),function(t,e){function r(t){var e=t.length,n=se.type(t);return se.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===n||"function"!==n&&(0===e||"number"==typeof e&&e>0&&e-1 in t)}function i(t){var e=fe[t]={};return se.each(t.match(le)||[],function(t,n){e[n]=!0}),e}function o(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=se.expando+Math.random()}function s(t,n,r){var i;if(r===e&&1===t.nodeType)if(i="data-"+n.replace(ye,"-$1").toLowerCase(),r=t.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:ve.test(r)?JSON.parse(r):r}catch(o){}ge.set(t,n,r)}else r=e;return r}function a(){return!0}function l(){return!1}function c(){try{return W.activeElement}catch(t){}}function u(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function h(t,e,n){if(se.isFunction(e))return se.grep(t,function(t,r){return!!e.call(t,r,t)!==n});if(e.nodeType)return se.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(Se.test(e))return se.filter(e,t,n);e=se.filter(e,t)}return se.grep(t,function(t){return ne.call(e,t)>=0!==n})}function p(t,e){return se.nodeName(t,"table")&&se.nodeName(1===e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function d(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function _(t){var e=Ie.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function f(t,e){for(var n=t.length,r=0;n>r;r++)me.set(t[r],"globalEval",!e||me.get(e[r],"globalEval"))}function g(t,e){var n,r,i,o,s,a,l,c;if(1===e.nodeType){if(me.hasData(t)&&(o=me.access(t),s=me.set(e,o),c=o.events)){delete s.handle,s.events={};for(i in c)for(n=0,r=c[i].length;r>n;n++)se.event.add(e,i,c[i][n])}ge.hasData(t)&&(a=ge.access(t),l=se.extend({},a),ge.set(e,l))}}function m(t,n){var r=t.getElementsByTagName?t.getElementsByTagName(n||"*"):t.querySelectorAll?t.querySelectorAll(n||"*"):[];return n===e||n&&se.nodeName(t,n)?se.merge([t],r):r}function v(t,e){var n=e.nodeName.toLowerCase();"input"===n&&$e.test(t.type)?e.checked=t.checked:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue)}function y(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),r=e,i=tn.length;i--;)if(e=tn[i]+n,e in t)return e;return r}function b(t,e){return t=e||t,"none"===se.css(t,"display")||!se.contains(t.ownerDocument,t)}function w(e){return t.getComputedStyle(e,null)}function x(t,e){for(var n,r,i,o=[],s=0,a=t.length;a>s;s++)r=t[s],r.style&&(o[s]=me.get(r,"olddisplay"),n=r.style.display,e?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&b(r)&&(o[s]=me.access(r,"olddisplay",T(r.nodeName)))):o[s]||(i=b(r),(n&&"none"!==n||!i)&&me.set(r,"olddisplay",i?n:se.css(r,"display"))));for(s=0;a>s;s++)r=t[s],r.style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[s]||"":"none"));return t}function k(t,e,n){var r=Ye.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function j(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,s=0;4>o;o+=2)"margin"===n&&(s+=se.css(t,n+Qe[o],!0,i)),r?("content"===n&&(s-=se.css(t,"padding"+Qe[o],!0,i)),"margin"!==n&&(s-=se.css(t,"border"+Qe[o]+"Width",!0,i))):(s+=se.css(t,"padding"+Qe[o],!0,i),"padding"!==n&&(s+=se.css(t,"border"+Qe[o]+"Width",!0,i)));return s}function C(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=w(t),s=se.support.boxSizing&&"border-box"===se.css(t,"boxSizing",!1,o);if(0>=i||null==i){if(i=Ue(t,e,o),(0>i||null==i)&&(i=t.style[e]),Ge.test(i))return i;r=s&&(se.support.boxSizingReliable||i===t.style[e]),i=parseFloat(i)||0}return i+j(t,e,n||(s?"border":"content"),r,o)+"px"}function T(t){var e=W,n=Je[t];return n||(n=M(t,e),"none"!==n&&n||(Ve=(Ve||se("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(e.documentElement),e=(Ve[0].contentWindow||Ve[0].contentDocument).document,e.write("<!doctype html><html><body>"),e.close(),n=M(t,e),Ve.detach()),Je[t]=n),n}function M(t,e){var n=se(e.createElement(t)).appendTo(e.body),r=se.css(n[0],"display");return n.remove(),r}function N(t,e,n,r){var i;if(se.isArray(e))se.each(e,function(e,i){n||nn.test(t)?r(t,i):N(t+"["+("object"==typeof i?e:"")+"]",i,n,r)});else if(n||"object"!==se.type(e))r(t,e);else for(i in e)N(t+"["+i+"]",e[i],n,r)}function S(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(le)||[];if(se.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function A(t,e,n,r){function i(a){var l;return o[a]=!0,se.each(t[a]||[],function(t,a){var c=a(e,n,r);return"string"!=typeof c||s||o[c]?s?!(l=c):void 0:(e.dataTypes.unshift(c),i(c),!1)}),l}var o={},s=t===bn;return i(e.dataTypes[0])||!o["*"]&&i("*")}function E(t,n){var r,i,o=se.ajaxSettings.flatOptions||{};for(r in n)n[r]!==e&&((o[r]?t:i||(i={}))[r]=n[r]);return i&&se.extend(!0,t,i),t}function O(t,n,r){for(var i,o,s,a,l=t.contents,c=t.dataTypes;"*"===c[0];)c.shift(),i===e&&(i=t.mimeType||n.getResponseHeader("Content-Type"));if(i)for(o in l)if(l[o]&&l[o].test(i)){c.unshift(o);break}if(c[0]in r)s=c[0];else{for(o in r){if(!c[0]||t.converters[o+" "+c[0]]){s=o;break}a||(a=o)}s=s||a}return s?(s!==c[0]&&c.unshift(s),r[s]):void 0}function P(t,e,n,r){var i,o,s,a,l,c={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(s=c[l+" "+o]||c["* "+o],!s)for(i in c)if(a=i.split(" "),a[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){s===!0?s=c[i]:c[i]!==!0&&(o=a[0],u.unshift(a[1]));break}if(s!==!0)if(s&&t["throws"])e=s(e);else try{e=s(e)}catch(h){return{state:"parsererror",error:s?h:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}function z(){return setTimeout(function(){Sn=e}),Sn=se.now()}function D(t,e,n){for(var r,i=(Dn[e]||[]).concat(Dn["*"]),o=0,s=i.length;s>o;o++)if(r=i[o].call(n,e,t))return r}function F(t,e,n){var r,i,o=0,s=zn.length,a=se.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var e=Sn||z(),n=Math.max(0,c.startTime+c.duration-e),r=n/c.duration||0,o=1-r,s=0,l=c.tweens.length;l>s;s++)c.tweens[s].run(o);return a.notifyWith(t,[c,o,n]),1>o&&l?n:(a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:se.extend({},e),opts:se.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:Sn||z(),duration:n.duration,tweens:[],createTween:function(e,n){var r=se.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(r),r},stop:function(e){var n=0,r=e?c.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)c.tweens[n].run(1);return e?a.resolveWith(t,[c,e]):a.rejectWith(t,[c,e]),this}}),u=c.props;for($(u,c.opts.specialEasing);s>o;o++)if(r=zn[o].call(c,t,u,c.opts))return r;return se.map(u,D,c),se.isFunction(c.opts.start)&&c.opts.start.call(t,c),se.fx.timer(se.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function $(t,e){var n,r,i,o,s;for(n in t)if(r=se.camelCase(n),i=e[r],o=t[n],se.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),s=se.cssHooks[r],s&&"expand"in s){o=s.expand(o),delete t[r];for(n in o)n in t||(t[n]=o[n],e[n]=i)}else e[r]=i}function q(t,n,r){var i,o,s,a,l,c,u=this,h={},p=t.style,d=t.nodeType&&b(t),_=me.get(t,"fxshow");r.queue||(l=se._queueHooks(t,"fx"),null==l.unqueued&&(l.unqueued=0,c=l.empty.fire,l.empty.fire=function(){l.unqueued||c()}),l.unqueued++,u.always(function(){u.always(function(){l.unqueued--,se.queue(t,"fx").length||l.empty.fire()})})),1===t.nodeType&&("height"in n||"width"in n)&&(r.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===se.css(t,"display")&&"none"===se.css(t,"float")&&(p.display="inline-block")),r.overflow&&(p.overflow="hidden",u.always(function(){p.overflow=r.overflow[0],p.overflowX=r.overflow[1],p.overflowY=r.overflow[2]}));for(i in n)if(o=n[i],En.exec(o)){if(delete n[i],s=s||"toggle"===o,o===(d?"hide":"show")){if("show"!==o||!_||_[i]===e)continue;d=!0}h[i]=_&&_[i]||se.style(t,i)}if(!se.isEmptyObject(h)){_?"hidden"in _&&(d=_.hidden):_=me.access(t,"fxshow",{}),s&&(_.hidden=!d),d?se(t).show():u.done(function(){se(t).hide()}),u.done(function(){var e;me.remove(t,"fxshow");for(e in h)se.style(t,e,h[e])});for(i in h)a=D(d?_[i]:0,i,u),i in _||(_[i]=a.start,d&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}}function B(t,e,n,r,i){return new B.prototype.init(t,e,n,r,i)}function I(t,e){var n,r={height:t},i=0;for(e=e?1:0;4>i;i+=2-e)n=Qe[i],r["margin"+n]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function L(t){return se.isWindow(t)?t:9===t.nodeType&&t.defaultView}var R,U,V=typeof e,H=t.location,W=t.document,Y=W.documentElement,G=t.jQuery,X=t.$,J={},K=[],Z="2.0.3",Q=K.concat,te=K.push,ee=K.slice,ne=K.indexOf,re=J.toString,ie=J.hasOwnProperty,oe=Z.trim,se=function(t,e){return new se.fn.init(t,e,R)},ae=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,le=/\S+/g,ce=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ue=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,he=/^-ms-/,pe=/-([\da-z])/gi,de=function(t,e){return e.toUpperCase()},_e=function(){W.removeEventListener("DOMContentLoaded",_e,!1),t.removeEventListener("load",_e,!1),se.ready()};se.fn=se.prototype={jquery:Z,constructor:se,init:function(t,n,r){var i,o;if(!t)return this;if("string"==typeof t){if(i="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:ce.exec(t),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(t):this.constructor(n).find(t);if(i[1]){if(n=n instanceof se?n[0]:n,se.merge(this,se.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:W,!0)),ue.test(i[1])&&se.isPlainObject(n))for(i in n)se.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}return o=W.getElementById(i[2]),o&&o.parentNode&&(this.length=1,this[0]=o),this.context=W,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):se.isFunction(t)?r.ready(t):(t.selector!==e&&(this.selector=t.selector,this.context=t.context),se.makeArray(t,this))},selector:"",length:0,toArray:function(){return ee.call(this)},get:function(t){return null==t?this.toArray():0>t?this[this.length+t]:this[t]},pushStack:function(t){var e=se.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return se.each(this,t,e)},ready:function(t){return se.ready.promise().done(t),this},slice:function(){return this.pushStack(ee.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(0>t?e:0);return this.pushStack(n>=0&&e>n?[this[n]]:[])},map:function(t){return this.pushStack(se.map(this,function(e,n){return t.call(e,n,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:te,sort:[].sort,splice:[].splice},se.fn.init.prototype=se.fn,se.extend=se.fn.extend=function(){var t,n,r,i,o,s,a=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[1]||{},l=2),"object"==typeof a||se.isFunction(a)||(a={}),c===l&&(a=this,--l);c>l;l++)if(null!=(t=arguments[l]))for(n in t)r=a[n],i=t[n],a!==i&&(u&&i&&(se.isPlainObject(i)||(o=se.isArray(i)))?(o?(o=!1,s=r&&se.isArray(r)?r:[]):s=r&&se.isPlainObject(r)?r:{},a[n]=se.extend(u,s,i)):i!==e&&(a[n]=i));return a},se.extend({expando:"jQuery"+(Z+Math.random()).replace(/\D/g,""),noConflict:function(e){return t.$===se&&(t.$=X),e&&t.jQuery===se&&(t.jQuery=G),se},isReady:!1,readyWait:1,holdReady:function(t){t?se.readyWait++:se.ready(!0)},ready:function(t){(t===!0?--se.readyWait:se.isReady)||(se.isReady=!0,t!==!0&&--se.readyWait>0||(U.resolveWith(W,[se]),se.fn.trigger&&se(W).trigger("ready").off("ready")))},isFunction:function(t){return"function"===se.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},type:function(t){return null==t?String(t):"object"==typeof t||"function"==typeof t?J[re.call(t)]||"object":typeof t},isPlainObject:function(t){if("object"!==se.type(t)||t.nodeType||se.isWindow(t))return!1;try{if(t.constructor&&!ie.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}return!0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},error:function(t){throw new Error(t)},parseHTML:function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||W;var r=ue.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=se.buildFragment([t],e,i),i&&se(i).remove(),se.merge([],r.childNodes))},parseJSON:JSON.parse,parseXML:function(t){var n,r;if(!t||"string"!=typeof t)return null;try{r=new DOMParser,n=r.parseFromString(t,"text/xml")}catch(i){n=e}return(!n||n.getElementsByTagName("parsererror").length)&&se.error("Invalid XML: "+t),n},noop:function(){},globalEval:function(t){var e,n=eval;t=se.trim(t),t&&(1===t.indexOf("use strict")?(e=W.createElement("script"),e.text=t,W.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(he,"ms-").replace(pe,de)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var i,o=0,s=t.length,a=r(t);if(n){if(a)for(;s>o&&(i=e.apply(t[o],n),i!==!1);o++);else for(o in t)if(i=e.apply(t[o],n),i===!1)break}else if(a)for(;s>o&&(i=e.call(t[o],o,t[o]),i!==!1);o++);else for(o in t)if(i=e.call(t[o],o,t[o]),i===!1)break;return t},trim:function(t){return null==t?"":oe.call(t)},makeArray:function(t,e){var n=e||[];return null!=t&&(r(Object(t))?se.merge(n,"string"==typeof t?[t]:t):te.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:ne.call(e,t,n)},merge:function(t,n){var r=n.length,i=t.length,o=0;if("number"==typeof r)for(;r>o;o++)t[i++]=n[o];else for(;n[o]!==e;)t[i++]=n[o++];return t.length=i,t},grep:function(t,e,n){var r,i=[],o=0,s=t.length;for(n=!!n;s>o;o++)r=!!e(t[o],o),n!==r&&i.push(t[o]);return i},map:function(t,e,n){var i,o=0,s=t.length,a=r(t),l=[];if(a)for(;s>o;o++)i=e(t[o],o,n),null!=i&&(l[l.length]=i);else for(o in t)i=e(t[o],o,n),null!=i&&(l[l.length]=i);return Q.apply([],l)},guid:1,proxy:function(t,n){var r,i,o;return"string"==typeof n&&(r=t[n],n=t,t=r),se.isFunction(t)?(i=ee.call(arguments,2),o=function(){return t.apply(n||this,i.concat(ee.call(arguments)))},o.guid=t.guid=t.guid||se.guid++,o):e},access:function(t,n,r,i,o,s,a){var l=0,c=t.length,u=null==r;if("object"===se.type(r)){o=!0;for(l in r)se.access(t,n,l,r[l],!0,s,a)}else if(i!==e&&(o=!0,se.isFunction(i)||(a=!0),u&&(a?(n.call(t,i),n=null):(u=n,n=function(t,e,n){return u.call(se(t),n)})),n))for(;c>l;l++)n(t[l],r,a?i:i.call(t[l],l,n(t[l],r)));return o?t:u?n.call(t):c?n(t[0],r):s},now:Date.now,swap:function(t,e,n,r){var i,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];i=n.apply(t,r||[]);for(o in e)t.style[o]=s[o];return i}}),se.ready.promise=function(e){return U||(U=se.Deferred(),"complete"===W.readyState?setTimeout(se.ready):(W.addEventListener("DOMContentLoaded",_e,!1),t.addEventListener("load",_e,!1))),U.promise(e)
            },se.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){J["[object "+e+"]"]=e.toLowerCase()}),R=se(W),function(t,e){function n(t,e,n,r){var i,o,s,a,l,c,u,h,_,f;if((e?e.ownerDocument||e:I)!==O&&E(e),e=e||O,n=n||[],!t||"string"!=typeof t)return n;if(1!==(a=e.nodeType)&&9!==a)return[];if(z&&!r){if(i=ye.exec(t))if(s=i[1]){if(9===a){if(o=e.getElementById(s),!o||!o.parentNode)return n;if(o.id===s)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(s))&&q(e,o)&&o.id===s)return n.push(o),n}else{if(i[2])return te.apply(n,e.getElementsByTagName(t)),n;if((s=i[3])&&k.getElementsByClassName&&e.getElementsByClassName)return te.apply(n,e.getElementsByClassName(s)),n}if(k.qsa&&(!D||!D.test(t))){if(h=u=B,_=e,f=9===a&&t,1===a&&"object"!==e.nodeName.toLowerCase()){for(c=p(t),(u=e.getAttribute("id"))?h=u.replace(xe,"\\$&"):e.setAttribute("id",h),h="[id='"+h+"'] ",l=c.length;l--;)c[l]=h+d(c[l]);_=de.test(t)&&e.parentNode||e,f=c.join(",")}if(f)try{return te.apply(n,_.querySelectorAll(f)),n}catch(g){}finally{u||e.removeAttribute("id")}}}return w(t.replace(ue,"$1"),e,n,r)}function r(){function t(n,r){return e.push(n+=" ")>C.cacheLength&&delete t[e.shift()],t[n]=r}var e=[];return t}function i(t){return t[B]=!0,t}function o(t){var e=O.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function s(t,e){for(var n=t.split("|"),r=t.length;r--;)C.attrHandle[n[r]]=e}function a(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||X)-(~t.sourceIndex||X);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function l(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function c(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function u(t){return i(function(e){return e=+e,i(function(n,r){for(var i,o=t([],n.length,e),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function h(){}function p(t,e){var r,i,o,s,a,l,c,u=V[t+" "];if(u)return e?0:u.slice(0);for(a=t,l=[],c=C.preFilter;a;){(!r||(i=he.exec(a)))&&(i&&(a=a.slice(i[0].length)||a),l.push(o=[])),r=!1,(i=pe.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(ue," ")}),a=a.slice(r.length));for(s in C.filter)!(i=me[s].exec(a))||c[s]&&!(i=c[s](i))||(r=i.shift(),o.push({value:r,type:s,matches:i}),a=a.slice(r.length));if(!r)break}return e?a.length:a?n.error(t):V(t,l).slice(0)}function d(t){for(var e=0,n=t.length,r="";n>e;e++)r+=t[e].value;return r}function _(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=R++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,s){var a,l,c,u=L+" "+o;if(s){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,s))return!0}else for(;e=e[r];)if(1===e.nodeType||i)if(c=e[B]||(e[B]={}),(l=c[r])&&l[0]===u){if((a=l[1])===!0||a===j)return a===!0}else if(l=c[r]=[u],l[1]=t(e,n,s)||j,l[1]===!0)return!0}}function f(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function g(t,e,n,r,i){for(var o,s=[],a=0,l=t.length,c=null!=e;l>a;a++)(o=t[a])&&(!n||n(o,r,i))&&(s.push(o),c&&e.push(a));return s}function m(t,e,n,r,o,s){return r&&!r[B]&&(r=m(r)),o&&!o[B]&&(o=m(o,s)),i(function(i,s,a,l){var c,u,h,p=[],d=[],_=s.length,f=i||b(e||"*",a.nodeType?[a]:a,[]),m=!t||!i&&e?f:g(f,p,t,a,l),v=n?o||(i?t:_||r)?[]:s:m;if(n&&n(m,v,a,l),r)for(c=g(v,d),r(c,[],a,l),u=c.length;u--;)(h=c[u])&&(v[d[u]]=!(m[d[u]]=h));if(i){if(o||t){if(o){for(c=[],u=v.length;u--;)(h=v[u])&&c.push(m[u]=h);o(null,v=[],c,l)}for(u=v.length;u--;)(h=v[u])&&(c=o?ne.call(i,h):p[u])>-1&&(i[c]=!(s[c]=h))}}else v=g(v===s?v.splice(_,v.length):v),o?o(null,s,v,l):te.apply(s,v)})}function v(t){for(var e,n,r,i=t.length,o=C.relative[t[0].type],s=o||C.relative[" "],a=o?1:0,l=_(function(t){return t===e},s,!0),c=_(function(t){return ne.call(e,t)>-1},s,!0),u=[function(t,n,r){return!o&&(r||n!==S)||((e=n).nodeType?l(t,n,r):c(t,n,r))}];i>a;a++)if(n=C.relative[t[a].type])u=[_(f(u),n)];else{if(n=C.filter[t[a].type].apply(null,t[a].matches),n[B]){for(r=++a;i>r&&!C.relative[t[r].type];r++);return m(a>1&&f(u),a>1&&d(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(ue,"$1"),n,r>a&&v(t.slice(a,r)),i>r&&v(t=t.slice(r)),i>r&&d(t))}u.push(n)}return f(u)}function y(t,e){var r=0,o=e.length>0,s=t.length>0,a=function(i,a,l,c,u){var h,p,d,_=[],f=0,m="0",v=i&&[],y=null!=u,b=S,w=i||s&&C.find.TAG("*",u&&a.parentNode||a),x=L+=null==b?1:Math.random()||.1;for(y&&(S=a!==O&&a,j=r);null!=(h=w[m]);m++){if(s&&h){for(p=0;d=t[p++];)if(d(h,a,l)){c.push(h);break}y&&(L=x,j=++r)}o&&((h=!d&&h)&&f--,i&&v.push(h))}if(f+=m,o&&m!==f){for(p=0;d=e[p++];)d(v,_,a,l);if(i){if(f>0)for(;m--;)v[m]||_[m]||(_[m]=Z.call(c));_=g(_)}te.apply(c,_),y&&!i&&_.length>0&&f+e.length>1&&n.uniqueSort(c)}return y&&(L=x,S=b),v};return o?i(a):a}function b(t,e,r){for(var i=0,o=e.length;o>i;i++)n(t,e[i],r);return r}function w(t,e,n,r){var i,o,s,a,l,c=p(t);if(!r&&1===c.length){if(o=c[0]=c[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&k.getById&&9===e.nodeType&&z&&C.relative[o[1].type]){if(e=(C.find.ID(s.matches[0].replace(ke,je),e)||[])[0],!e)return n;t=t.slice(o.shift().value.length)}for(i=me.needsContext.test(t)?0:o.length;i--&&(s=o[i],!C.relative[a=s.type]);)if((l=C.find[a])&&(r=l(s.matches[0].replace(ke,je),de.test(o[0].type)&&e.parentNode||e))){if(o.splice(i,1),t=r.length&&d(o),!t)return te.apply(n,r),n;break}}return N(t,c)(r,e,!z,n,de.test(t)),n}var x,k,j,C,T,M,N,S,A,E,O,P,z,D,F,$,q,B="sizzle"+-new Date,I=t.document,L=0,R=0,U=r(),V=r(),H=r(),W=!1,Y=function(t,e){return t===e?(W=!0,0):0},G=typeof e,X=1<<31,J={}.hasOwnProperty,K=[],Z=K.pop,Q=K.push,te=K.push,ee=K.slice,ne=K.indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(this[e]===t)return e;return-1},re="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ie="[\\x20\\t\\r\\n\\f]",oe="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ae=oe.replace("w","w#"),le="\\["+ie+"*("+oe+")"+ie+"*(?:([*^$|!~]?=)"+ie+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+ae+")|)|)"+ie+"*\\]",ce=":("+oe+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+le.replace(3,8)+")*)|.*)\\)|)",ue=new RegExp("^"+ie+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ie+"+$","g"),he=new RegExp("^"+ie+"*,"+ie+"*"),pe=new RegExp("^"+ie+"*([>+~]|"+ie+")"+ie+"*"),de=new RegExp(ie+"*[+~]"),_e=new RegExp("="+ie+"*([^\\]'\"]*)"+ie+"*\\]","g"),fe=new RegExp(ce),ge=new RegExp("^"+ae+"$"),me={ID:new RegExp("^#("+oe+")"),CLASS:new RegExp("^\\.("+oe+")"),TAG:new RegExp("^("+oe.replace("w","w*")+")"),ATTR:new RegExp("^"+le),PSEUDO:new RegExp("^"+ce),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ie+"*(even|odd|(([+-]|)(\\d*)n|)"+ie+"*(?:([+-]|)"+ie+"*(\\d+)|))"+ie+"*\\)|)","i"),bool:new RegExp("^(?:"+re+")$","i"),needsContext:new RegExp("^"+ie+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ie+"*((?:-\\d)?\\d*)"+ie+"*\\)|)(?=[^-]|$)","i")},ve=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,be=/^(?:input|select|textarea|button)$/i,we=/^h\d$/i,xe=/'|\\/g,ke=new RegExp("\\\\([\\da-f]{1,6}"+ie+"?|("+ie+")|.)","ig"),je=function(t,e,n){var r="0x"+e-65536;return r!==r||n?e:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{te.apply(K=ee.call(I.childNodes),I.childNodes),K[I.childNodes.length].nodeType}catch(Ce){te={apply:K.length?function(t,e){Q.apply(t,ee.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}M=n.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},k=n.support={},E=n.setDocument=function(t){var e=t?t.ownerDocument||t:I,n=e.defaultView;return e!==O&&9===e.nodeType&&e.documentElement?(O=e,P=e.documentElement,z=!M(e),n&&n.attachEvent&&n!==n.top&&n.attachEvent("onbeforeunload",function(){E()}),k.attributes=o(function(t){return t.className="i",!t.getAttribute("className")}),k.getElementsByTagName=o(function(t){return t.appendChild(e.createComment("")),!t.getElementsByTagName("*").length}),k.getElementsByClassName=o(function(t){return t.innerHTML="<div class='a'></div><div class='a i'></div>",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),k.getById=o(function(t){return P.appendChild(t).id=B,!e.getElementsByName||!e.getElementsByName(B).length}),k.getById?(C.find.ID=function(t,e){if(typeof e.getElementById!==G&&z){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},C.filter.ID=function(t){var e=t.replace(ke,je);return function(t){return t.getAttribute("id")===e}}):(delete C.find.ID,C.filter.ID=function(t){var e=t.replace(ke,je);return function(t){var n=typeof t.getAttributeNode!==G&&t.getAttributeNode("id");return n&&n.value===e}}),C.find.TAG=k.getElementsByTagName?function(t,e){return typeof e.getElementsByTagName!==G?e.getElementsByTagName(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},C.find.CLASS=k.getElementsByClassName&&function(t,e){return typeof e.getElementsByClassName!==G&&z?e.getElementsByClassName(t):void 0},F=[],D=[],(k.qsa=ve.test(e.querySelectorAll))&&(o(function(t){t.innerHTML="<select><option selected=''></option></select>",t.querySelectorAll("[selected]").length||D.push("\\["+ie+"*(?:value|"+re+")"),t.querySelectorAll(":checked").length||D.push(":checked")}),o(function(t){var n=e.createElement("input");n.setAttribute("type","hidden"),t.appendChild(n).setAttribute("t",""),t.querySelectorAll("[t^='']").length&&D.push("[*^$]="+ie+"*(?:''|\"\")"),t.querySelectorAll(":enabled").length||D.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),D.push(",.*:")})),(k.matchesSelector=ve.test($=P.webkitMatchesSelector||P.mozMatchesSelector||P.oMatchesSelector||P.msMatchesSelector))&&o(function(t){k.disconnectedMatch=$.call(t,"div"),$.call(t,"[s!='']:x"),F.push("!=",ce)}),D=D.length&&new RegExp(D.join("|")),F=F.length&&new RegExp(F.join("|")),q=ve.test(P.contains)||P.compareDocumentPosition?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},Y=P.compareDocumentPosition?function(t,n){if(t===n)return W=!0,0;var r=n.compareDocumentPosition&&t.compareDocumentPosition&&t.compareDocumentPosition(n);return r?1&r||!k.sortDetached&&n.compareDocumentPosition(t)===r?t===e||q(I,t)?-1:n===e||q(I,n)?1:A?ne.call(A,t)-ne.call(A,n):0:4&r?-1:1:t.compareDocumentPosition?-1:1}:function(t,n){var r,i=0,o=t.parentNode,s=n.parentNode,l=[t],c=[n];if(t===n)return W=!0,0;if(!o||!s)return t===e?-1:n===e?1:o?-1:s?1:A?ne.call(A,t)-ne.call(A,n):0;if(o===s)return a(t,n);for(r=t;r=r.parentNode;)l.unshift(r);for(r=n;r=r.parentNode;)c.unshift(r);for(;l[i]===c[i];)i++;return i?a(l[i],c[i]):l[i]===I?-1:c[i]===I?1:0},e):O},n.matches=function(t,e){return n(t,null,null,e)},n.matchesSelector=function(t,e){if((t.ownerDocument||t)!==O&&E(t),e=e.replace(_e,"='$1']"),!(!k.matchesSelector||!z||F&&F.test(e)||D&&D.test(e)))try{var r=$.call(t,e);if(r||k.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(i){}return n(e,O,null,[t]).length>0},n.contains=function(t,e){return(t.ownerDocument||t)!==O&&E(t),q(t,e)},n.attr=function(t,n){(t.ownerDocument||t)!==O&&E(t);var r=C.attrHandle[n.toLowerCase()],i=r&&J.call(C.attrHandle,n.toLowerCase())?r(t,n,!z):e;return i===e?k.attributes||!z?t.getAttribute(n):(i=t.getAttributeNode(n))&&i.specified?i.value:null:i},n.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},n.uniqueSort=function(t){var e,n=[],r=0,i=0;if(W=!k.detectDuplicates,A=!k.sortStable&&t.slice(0),t.sort(Y),W){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return t},T=n.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=T(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r];r++)n+=T(e);return n},C=n.selectors={cacheLength:50,createPseudo:i,match:me,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(ke,je),t[3]=(t[4]||t[5]||"").replace(ke,je),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||n.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&n.error(t[0]),t},PSEUDO:function(t){var n,r=!t[5]&&t[2];return me.CHILD.test(t[0])?null:(t[3]&&t[4]!==e?t[2]=t[4]:r&&fe.test(r)&&(n=p(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(t[0]=t[0].slice(0,n),t[2]=r.slice(0,n)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(ke,je).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=U[t+" "];return e||(e=new RegExp("(^|"+ie+")"+t+"("+ie+"|$)"))&&U(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==G&&t.getAttribute("class")||"")})},ATTR:function(t,e,r){return function(i){var o=n.attr(i,t);return null==o?"!="===e:e?(o+="","="===e?o===r:"!="===e?o!==r:"^="===e?r&&0===o.indexOf(r):"*="===e?r&&o.indexOf(r)>-1:"$="===e?r&&o.slice(-r.length)===r:"~="===e?(" "+o+" ").indexOf(r)>-1:"|="===e?o===r||o.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,l){var c,u,h,p,d,_,f=o!==s?"nextSibling":"previousSibling",g=e.parentNode,m=a&&e.nodeName.toLowerCase(),v=!l&&!a;if(g){if(o){for(;f;){for(h=e;h=h[f];)if(a?h.nodeName.toLowerCase()===m:1===h.nodeType)return!1;_=f="only"===t&&!_&&"nextSibling"}return!0}if(_=[s?g.firstChild:g.lastChild],s&&v){for(u=g[B]||(g[B]={}),c=u[t]||[],d=c[0]===L&&c[1],p=c[0]===L&&c[2],h=d&&g.childNodes[d];h=++d&&h&&h[f]||(p=d=0)||_.pop();)if(1===h.nodeType&&++p&&h===e){u[t]=[L,d,p];break}}else if(v&&(c=(e[B]||(e[B]={}))[t])&&c[0]===L)p=c[1];else for(;(h=++d&&h&&h[f]||(p=d=0)||_.pop())&&((a?h.nodeName.toLowerCase()!==m:1!==h.nodeType)||!++p||(v&&((h[B]||(h[B]={}))[t]=[L,p]),h!==e)););return p-=i,p===r||0===p%r&&p/r>=0}}},PSEUDO:function(t,e){var r,o=C.pseudos[t]||C.setFilters[t.toLowerCase()]||n.error("unsupported pseudo: "+t);return o[B]?o(e):o.length>1?(r=[t,t,"",e],C.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,n){for(var r,i=o(t,e),s=i.length;s--;)r=ne.call(t,i[s]),t[r]=!(n[r]=i[s])}):function(t){return o(t,0,r)}):o}},pseudos:{not:i(function(t){var e=[],n=[],r=N(t.replace(ue,"$1"));return r[B]?i(function(t,e,n,i){for(var o,s=r(t,null,i,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),!n.pop()}}),has:i(function(t){return function(e){return n(t,e).length>0}}),contains:i(function(t){return function(e){return(e.textContent||e.innerText||T(e)).indexOf(t)>-1}}),lang:i(function(t){return ge.test(t||"")||n.error("unsupported lang: "+t),t=t.replace(ke,je).toLowerCase(),function(e){var n;do if(n=z?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===P},focus:function(t){return t===O.activeElement&&(!O.hasFocus||O.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeName>"@"||3===t.nodeType||4===t.nodeType)return!1;return!0},parent:function(t){return!C.pseudos.empty(t)},header:function(t){return we.test(t.nodeName)},input:function(t){return be.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||e.toLowerCase()===t.type)},first:u(function(){return[0]}),last:u(function(t,e){return[e-1]}),eq:u(function(t,e,n){return[0>n?n+e:n]}),even:u(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:u(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:u(function(t,e,n){for(var r=0>n?n+e:n;--r>=0;)t.push(r);return t}),gt:u(function(t,e,n){for(var r=0>n?n+e:n;++r<e;)t.push(r);return t})}},C.pseudos.nth=C.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[x]=l(x);for(x in{submit:!0,reset:!0})C.pseudos[x]=c(x);h.prototype=C.filters=C.pseudos,C.setFilters=new h,N=n.compile=function(t,e){var n,r=[],i=[],o=H[t+" "];if(!o){for(e||(e=p(t)),n=e.length;n--;)o=v(e[n]),o[B]?r.push(o):i.push(o);o=H(t,y(i,r))}return o},k.sortStable=B.split("").sort(Y).join("")===B,k.detectDuplicates=W,E(),k.sortDetached=o(function(t){return 1&t.compareDocumentPosition(O.createElement("div"))}),o(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||s("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),k.attributes&&o(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||s("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),o(function(t){return null==t.getAttribute("disabled")})||s(re,function(t,e,n){var r;return n?void 0:(r=t.getAttributeNode(e))&&r.specified?r.value:t[e]===!0?e.toLowerCase():null}),se.find=n,se.expr=n.selectors,se.expr[":"]=se.expr.pseudos,se.unique=n.uniqueSort,se.text=n.getText,se.isXMLDoc=n.isXML,se.contains=n.contains}(t);var fe={};se.Callbacks=function(t){t="string"==typeof t?fe[t]||i(t):se.extend({},t);var n,r,o,s,a,l,c=[],u=!t.once&&[],h=function(e){for(n=t.memory&&e,r=!0,l=s||0,s=0,a=c.length,o=!0;c&&a>l;l++)if(c[l].apply(e[0],e[1])===!1&&t.stopOnFalse){n=!1;break}o=!1,c&&(u?u.length&&h(u.shift()):n?c=[]:p.disable())},p={add:function(){if(c){var e=c.length;!function r(e){se.each(e,function(e,n){var i=se.type(n);"function"===i?t.unique&&p.has(n)||c.push(n):n&&n.length&&"string"!==i&&r(n)})}(arguments),o?a=c.length:n&&(s=e,h(n))}return this},remove:function(){return c&&se.each(arguments,function(t,e){for(var n;(n=se.inArray(e,c,n))>-1;)c.splice(n,1),o&&(a>=n&&a--,l>=n&&l--)}),this},has:function(t){return t?se.inArray(t,c)>-1:!(!c||!c.length)},empty:function(){return c=[],a=0,this},disable:function(){return c=u=n=e,this},disabled:function(){return!c},lock:function(){return u=e,n||p.disable(),this},locked:function(){return!u},fireWith:function(t,e){return!c||r&&!u||(e=e||[],e=[t,e.slice?e.slice():e],o?u.push(e):h(e)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!r}};return p},se.extend({Deferred:function(t){var e=[["resolve","done",se.Callbacks("once memory"),"resolved"],["reject","fail",se.Callbacks("once memory"),"rejected"],["notify","progress",se.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return se.Deferred(function(n){se.each(e,function(e,o){var s=o[0],a=se.isFunction(t[e])&&t[e];i[o[1]](function(){var t=a&&a.apply(this,arguments);t&&se.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===r?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?se.extend(t,r):r}},i={};return r.pipe=r.then,se.each(e,function(t,o){var s=o[2],a=o[3];r[o[1]]=s.add,a&&s.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=s.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=ee.call(arguments),s=o.length,a=1!==s||t&&se.isFunction(t.promise)?s:0,l=1===a?t:se.Deferred(),c=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?ee.call(arguments):i,r===e?l.notifyWith(n,r):--a||l.resolveWith(n,r)}};if(s>1)for(e=new Array(s),n=new Array(s),r=new Array(s);s>i;i++)o[i]&&se.isFunction(o[i].promise)?o[i].promise().done(c(i,r,o)).fail(l.reject).progress(c(i,n,e)):--a;return a||l.resolveWith(r,o),l.promise()}}),se.support=function(e){var n=W.createElement("input"),r=W.createDocumentFragment(),i=W.createElement("div"),o=W.createElement("select"),s=o.appendChild(W.createElement("option"));return n.type?(n.type="checkbox",e.checkOn=""!==n.value,e.optSelected=s.selected,e.reliableMarginRight=!0,e.boxSizingReliable=!0,e.pixelPosition=!1,n.checked=!0,e.noCloneChecked=n.cloneNode(!0).checked,o.disabled=!0,e.optDisabled=!s.disabled,n=W.createElement("input"),n.value="t",n.type="radio",e.radioValue="t"===n.value,n.setAttribute("checked","t"),n.setAttribute("name","t"),r.appendChild(n),e.checkClone=r.cloneNode(!0).cloneNode(!0).lastChild.checked,e.focusinBubbles="onfocusin"in t,i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle="content-box"===i.style.backgroundClip,se(function(){var n,r,o="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",s=W.getElementsByTagName("body")[0];s&&(n=W.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",s.appendChild(n).appendChild(i),i.innerHTML="",i.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",se.swap(s,null!=s.style.zoom?{zoom:1}:{},function(){e.boxSizing=4===i.offsetWidth}),t.getComputedStyle&&(e.pixelPosition="1%"!==(t.getComputedStyle(i,null)||{}).top,e.boxSizingReliable="4px"===(t.getComputedStyle(i,null)||{width:"4px"}).width,r=i.appendChild(W.createElement("div")),r.style.cssText=i.style.cssText=o,r.style.marginRight=r.style.width="0",i.style.width="1px",e.reliableMarginRight=!parseFloat((t.getComputedStyle(r,null)||{}).marginRight)),s.removeChild(n))}),e):e}({});var ge,me,ve=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,ye=/([A-Z])/g;o.uid=1,o.accepts=function(t){return t.nodeType?1===t.nodeType||9===t.nodeType:!0},o.prototype={key:function(t){if(!o.accepts(t))return 0;var e={},n=t[this.expando];if(!n){n=o.uid++;try{e[this.expando]={value:n},Object.defineProperties(t,e)}catch(r){e[this.expando]=n,se.extend(t,e)}}return this.cache[n]||(this.cache[n]={}),n},set:function(t,e,n){var r,i=this.key(t),o=this.cache[i];if("string"==typeof e)o[e]=n;else if(se.isEmptyObject(o))se.extend(this.cache[i],e);else for(r in e)o[r]=e[r];return o},get:function(t,n){var r=this.cache[this.key(t)];return n===e?r:r[n]},access:function(t,n,r){var i;return n===e||n&&"string"==typeof n&&r===e?(i=this.get(t,n),i!==e?i:this.get(t,se.camelCase(n))):(this.set(t,n,r),r!==e?r:n)},remove:function(t,n){var r,i,o,s=this.key(t),a=this.cache[s];if(n===e)this.cache[s]={};else{se.isArray(n)?i=n.concat(n.map(se.camelCase)):(o=se.camelCase(n),n in a?i=[n,o]:(i=o,i=i in a?[i]:i.match(le)||[])),r=i.length;for(;r--;)delete a[i[r]]}},hasData:function(t){return!se.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}},ge=new o,me=new o,se.extend({acceptData:o.accepts,hasData:function(t){return ge.hasData(t)||me.hasData(t)},data:function(t,e,n){return ge.access(t,e,n)},removeData:function(t,e){ge.remove(t,e)},_data:function(t,e,n){return me.access(t,e,n)},_removeData:function(t,e){me.remove(t,e)}}),se.fn.extend({data:function(t,n){var r,i,o=this[0],a=0,l=null;if(t===e){if(this.length&&(l=ge.get(o),1===o.nodeType&&!me.get(o,"hasDataAttrs"))){for(r=o.attributes;a<r.length;a++)i=r[a].name,0===i.indexOf("data-")&&(i=se.camelCase(i.slice(5)),s(o,i,l[i]));me.set(o,"hasDataAttrs",!0)}return l}return"object"==typeof t?this.each(function(){ge.set(this,t)}):se.access(this,function(n){var r,i=se.camelCase(t);if(o&&n===e){if(r=ge.get(o,t),r!==e)return r;if(r=ge.get(o,i),r!==e)return r;if(r=s(o,i,e),r!==e)return r}else this.each(function(){var r=ge.get(this,i);ge.set(this,i,n),-1!==t.indexOf("-")&&r!==e&&ge.set(this,t,n)})},null,n,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){ge.remove(this,t)})}}),se.extend({queue:function(t,e,n){var r;return t?(e=(e||"fx")+"queue",r=me.get(t,e),n&&(!r||se.isArray(n)?r=me.access(t,e,se.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=se.queue(t,e),r=n.length,i=n.shift(),o=se._queueHooks(t,e),s=function(){se.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return me.get(t,n)||me.access(t,n,{empty:se.Callbacks("once memory").add(function(){me.remove(t,[e+"queue",n])})})}}),se.fn.extend({queue:function(t,n){var r=2;return"string"!=typeof t&&(n=t,t="fx",r--),arguments.length<r?se.queue(this[0],t):n===e?this:this.each(function(){var e=se.queue(this,t,n);se._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&se.dequeue(this,t)})},dequeue:function(t){return this.each(function(){se.dequeue(this,t)})},delay:function(t,e){return t=se.fx?se.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var r=setTimeout(e,t);n.stop=function(){clearTimeout(r)}})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,n){var r,i=1,o=se.Deferred(),s=this,a=this.length,l=function(){--i||o.resolveWith(s,[s])};for("string"!=typeof t&&(n=t,t=e),t=t||"fx";a--;)r=me.get(s[a],t+"queueHooks"),r&&r.empty&&(i++,r.empty.add(l));return l(),o.promise(n)}});var be,we,xe=/[\t\r\n\f]/g,ke=/\r/g,je=/^(?:input|select|textarea|button)$/i;se.fn.extend({attr:function(t,e){return se.access(this,se.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){se.removeAttr(this,t)})},prop:function(t,e){return se.access(this,se.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[se.propFix[t]||t]})},addClass:function(t){var e,n,r,i,o,s=0,a=this.length,l="string"==typeof t&&t;if(se.isFunction(t))return this.each(function(e){se(this).addClass(t.call(this,e,this.className))});if(l)for(e=(t||"").match(le)||[];a>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(xe," "):" ")){for(o=0;i=e[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");n.className=se.trim(r)}return this},removeClass:function(t){var e,n,r,i,o,s=0,a=this.length,l=0===arguments.length||"string"==typeof t&&t;if(se.isFunction(t))return this.each(function(e){se(this).removeClass(t.call(this,e,this.className))});if(l)for(e=(t||"").match(le)||[];a>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(xe," "):"")){for(o=0;i=e[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");n.className=t?se.trim(r):""}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):se.isFunction(t)?this.each(function(n){se(this).toggleClass(t.call(this,n,this.className,e),e)}):this.each(function(){if("string"===n)for(var e,r=0,i=se(this),o=t.match(le)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else(n===V||"boolean"===n)&&(this.className&&me.set(this,"__className__",this.className),this.className=this.className||t===!1?"":me.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(xe," ").indexOf(e)>=0)return!0;return!1},val:function(t){var n,r,i,o=this[0];{if(arguments.length)return i=se.isFunction(t),this.each(function(r){var o;1===this.nodeType&&(o=i?t.call(this,r,se(this).val()):t,null==o?o="":"number"==typeof o?o+="":se.isArray(o)&&(o=se.map(o,function(t){return null==t?"":t+""})),n=se.valHooks[this.type]||se.valHooks[this.nodeName.toLowerCase()],n&&"set"in n&&n.set(this,o,"value")!==e||(this.value=o))});if(o)return n=se.valHooks[o.type]||se.valHooks[o.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(o,"value"))!==e?r:(r=o.value,"string"==typeof r?r.replace(ke,""):null==r?"":r)}}}),se.extend({valHooks:{option:{get:function(t){var e=t.attributes.value;return!e||e.specified?t.value:t.text}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||0>i,s=o?null:[],a=o?i+1:r.length,l=0>i?a:o?i:0;a>l;l++)if(n=r[l],!(!n.selected&&l!==i||(se.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&se.nodeName(n.parentNode,"optgroup"))){if(e=se(n).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var n,r,i=t.options,o=se.makeArray(e),s=i.length;s--;)r=i[s],(r.selected=se.inArray(se(r).val(),o)>=0)&&(n=!0);return n||(t.selectedIndex=-1),o}}},attr:function(t,n,r){var i,o,s=t.nodeType;if(t&&3!==s&&8!==s&&2!==s)return typeof t.getAttribute===V?se.prop(t,n,r):(1===s&&se.isXMLDoc(t)||(n=n.toLowerCase(),i=se.attrHooks[n]||(se.expr.match.bool.test(n)?we:be)),r===e?i&&"get"in i&&null!==(o=i.get(t,n))?o:(o=se.find.attr(t,n),null==o?e:o):null!==r?i&&"set"in i&&(o=i.set(t,r,n))!==e?o:(t.setAttribute(n,r+""),r):(se.removeAttr(t,n),void 0))},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(le);if(o&&1===t.nodeType)for(;n=o[i++];)r=se.propFix[n]||n,se.expr.match.bool.test(n)&&(t[r]=!1),t.removeAttribute(n)},attrHooks:{type:{set:function(t,e){if(!se.support.radioValue&&"radio"===e&&se.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(t,n,r){var i,o,s,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return s=1!==a||!se.isXMLDoc(t),s&&(n=se.propFix[n]||n,o=se.propHooks[n]),r!==e?o&&"set"in o&&(i=o.set(t,r,n))!==e?i:t[n]=r:o&&"get"in o&&null!==(i=o.get(t,n))?i:t[n]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||je.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),we={set:function(t,e,n){return e===!1?se.removeAttr(t,n):t.setAttribute(n,n),n}},se.each(se.expr.match.bool.source.match(/\w+/g),function(t,n){var r=se.expr.attrHandle[n]||se.find.attr;se.expr.attrHandle[n]=function(t,n,i){var o=se.expr.attrHandle[n],s=i?e:(se.expr.attrHandle[n]=e)!=r(t,n,i)?n.toLowerCase():null;return se.expr.attrHandle[n]=o,s}}),se.support.optSelected||(se.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),se.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){se.propFix[this.toLowerCase()]=this}),se.each(["radio","checkbox"],function(){se.valHooks[this]={set:function(t,e){return se.isArray(e)?t.checked=se.inArray(se(t).val(),e)>=0:void 0}},se.support.checkOn||(se.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Ce=/^key/,Te=/^(?:mouse|contextmenu)|click/,Me=/^(?:focusinfocus|focusoutblur)$/,Ne=/^([^.]*)(?:\.(.+)|)$/;se.event={global:{},add:function(t,n,r,i,o){var s,a,l,c,u,h,p,d,_,f,g,m=me.get(t);if(m){for(r.handler&&(s=r,r=s.handler,o=s.selector),r.guid||(r.guid=se.guid++),(c=m.events)||(c=m.events={}),(a=m.handle)||(a=m.handle=function(t){return typeof se===V||t&&se.event.triggered===t.type?e:se.event.dispatch.apply(a.elem,arguments)},a.elem=t),n=(n||"").match(le)||[""],u=n.length;u--;)l=Ne.exec(n[u])||[],_=g=l[1],f=(l[2]||"").split(".").sort(),_&&(p=se.event.special[_]||{},_=(o?p.delegateType:p.bindType)||_,p=se.event.special[_]||{},h=se.extend({type:_,origType:g,data:i,handler:r,guid:r.guid,selector:o,needsContext:o&&se.expr.match.needsContext.test(o),namespace:f.join(".")},s),(d=c[_])||(d=c[_]=[],d.delegateCount=0,p.setup&&p.setup.call(t,i,f,a)!==!1||t.addEventListener&&t.addEventListener(_,a,!1)),p.add&&(p.add.call(t,h),h.handler.guid||(h.handler.guid=r.guid)),o?d.splice(d.delegateCount++,0,h):d.push(h),se.event.global[_]=!0);
            t=null}},remove:function(t,e,n,r,i){var o,s,a,l,c,u,h,p,d,_,f,g=me.hasData(t)&&me.get(t);if(g&&(l=g.events)){for(e=(e||"").match(le)||[""],c=e.length;c--;)if(a=Ne.exec(e[c])||[],d=f=a[1],_=(a[2]||"").split(".").sort(),d){for(h=se.event.special[d]||{},d=(r?h.delegateType:h.bindType)||d,p=l[d]||[],a=a[2]&&new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=p.length;o--;)u=p[o],!i&&f!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(p.splice(o,1),u.selector&&p.delegateCount--,h.remove&&h.remove.call(t,u));s&&!p.length&&(h.teardown&&h.teardown.call(t,_,g.handle)!==!1||se.removeEvent(t,d,g.handle),delete l[d])}else for(d in l)se.event.remove(t,d+e[c],n,r,!0);se.isEmptyObject(l)&&(delete g.handle,me.remove(t,"events"))}},trigger:function(n,r,i,o){var s,a,l,c,u,h,p,d=[i||W],_=ie.call(n,"type")?n.type:n,f=ie.call(n,"namespace")?n.namespace.split("."):[];if(a=l=i=i||W,3!==i.nodeType&&8!==i.nodeType&&!Me.test(_+se.event.triggered)&&(_.indexOf(".")>=0&&(f=_.split("."),_=f.shift(),f.sort()),u=_.indexOf(":")<0&&"on"+_,n=n[se.expando]?n:new se.Event(_,"object"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=f.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=e,n.target||(n.target=i),r=null==r?[n]:se.makeArray(r,[n]),p=se.event.special[_]||{},o||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!o&&!p.noBubble&&!se.isWindow(i)){for(c=p.delegateType||_,Me.test(c+_)||(a=a.parentNode);a;a=a.parentNode)d.push(a),l=a;l===(i.ownerDocument||W)&&d.push(l.defaultView||l.parentWindow||t)}for(s=0;(a=d[s++])&&!n.isPropagationStopped();)n.type=s>1?c:p.bindType||_,h=(me.get(a,"events")||{})[n.type]&&me.get(a,"handle"),h&&h.apply(a,r),h=u&&a[u],h&&se.acceptData(a)&&h.apply&&h.apply(a,r)===!1&&n.preventDefault();return n.type=_,o||n.isDefaultPrevented()||p._default&&p._default.apply(d.pop(),r)!==!1||!se.acceptData(i)||u&&se.isFunction(i[_])&&!se.isWindow(i)&&(l=i[u],l&&(i[u]=null),se.event.triggered=_,i[_](),se.event.triggered=e,l&&(i[u]=l)),n.result}},dispatch:function(t){t=se.event.fix(t);var n,r,i,o,s,a=[],l=ee.call(arguments),c=(me.get(this,"events")||{})[t.type]||[],u=se.event.special[t.type]||{};if(l[0]=t,t.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,t)!==!1){for(a=se.event.handlers.call(this,t,c),n=0;(o=a[n++])&&!t.isPropagationStopped();)for(t.currentTarget=o.elem,r=0;(s=o.handlers[r++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(s.namespace))&&(t.handleObj=s,t.data=s.data,i=((se.event.special[s.origType]||{}).handle||s.handler).apply(o.elem,l),i!==e&&(t.result=i)===!1&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,n){var r,i,o,s,a=[],l=n.delegateCount,c=t.target;if(l&&c.nodeType&&(!t.button||"click"!==t.type))for(;c!==this;c=c.parentNode||this)if(c.disabled!==!0||"click"!==t.type){for(i=[],r=0;l>r;r++)s=n[r],o=s.selector+" ",i[o]===e&&(i[o]=s.needsContext?se(o,this).index(c)>=0:se.find(o,this,null,[c]).length),i[o]&&i.push(s);i.length&&a.push({elem:c,handlers:i})}return l<n.length&&a.push({elem:this,handlers:n.slice(l)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,n){var r,i,o,s=n.button;return null==t.pageX&&null!=n.clientX&&(r=t.target.ownerDocument||W,i=r.documentElement,o=r.body,t.pageX=n.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),t.pageY=n.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)),t.which||s===e||(t.which=1&s?1:2&s?3:4&s?2:0),t}},fix:function(t){if(t[se.expando])return t;var e,n,r,i=t.type,o=t,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=Te.test(i)?this.mouseHooks:Ce.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,t=new se.Event(o),e=r.length;e--;)n=r[e],t[n]=o[n];return t.target||(t.target=W),3===t.target.nodeType&&(t.target=t.target.parentNode),s.filter?s.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==c()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===c()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&se.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return se.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){t.result!==e&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,r){var i=se.extend(new se.Event,n,{type:t,isSimulated:!0,originalEvent:{}});r?se.event.trigger(i,null,e):se.event.dispatch.call(e,i),i.isDefaultPrevented()&&n.preventDefault()}},se.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)},se.Event=function(t,e){return this instanceof se.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.getPreventDefault&&t.getPreventDefault()?a:l):this.type=t,e&&se.extend(this,e),this.timeStamp=t&&t.timeStamp||se.now(),this[se.expando]=!0,void 0):new se.Event(t,e)},se.Event.prototype={isDefaultPrevented:l,isPropagationStopped:l,isImmediatePropagationStopped:l,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=a,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=a,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=a,this.stopPropagation()}},se.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,e){se.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return(!i||i!==r&&!se.contains(r,i))&&(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),se.support.focusinBubbles||se.each({focus:"focusin",blur:"focusout"},function(t,e){var n=0,r=function(t){se.event.simulate(e,t.target,se.event.fix(t),!0)};se.event.special[e]={setup:function(){0===n++&&W.addEventListener(t,r,!0)},teardown:function(){0===--n&&W.removeEventListener(t,r,!0)}}}),se.fn.extend({on:function(t,n,r,i,o){var s,a;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=e);for(a in t)this.on(a,n,r,t[a],o);return this}if(null==r&&null==i?(i=n,r=n=e):null==i&&("string"==typeof n?(i=r,r=e):(i=r,r=n,n=e)),i===!1)i=l;else if(!i)return this;return 1===o&&(s=i,i=function(t){return se().off(t),s.apply(this,arguments)},i.guid=s.guid||(s.guid=se.guid++)),this.each(function(){se.event.add(this,t,i,r,n)})},one:function(t,e,n,r){return this.on(t,e,n,r,1)},off:function(t,n,r){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,se(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(o in t)this.off(o,n,t[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=e),r===!1&&(r=l),this.each(function(){se.event.remove(this,t,r,n)})},trigger:function(t,e){return this.each(function(){se.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?se.event.trigger(t,e,n,!0):void 0}});var Se=/^.[^:#\[\.,]*$/,Ae=/^(?:parents|prev(?:Until|All))/,Ee=se.expr.match.needsContext,Oe={children:!0,contents:!0,next:!0,prev:!0};se.fn.extend({find:function(t){var e,n=[],r=this,i=r.length;if("string"!=typeof t)return this.pushStack(se(t).filter(function(){for(e=0;i>e;e++)if(se.contains(r[e],this))return!0}));for(e=0;i>e;e++)se.find(t,r[e],n);return n=this.pushStack(i>1?se.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},has:function(t){var e=se(t,this),n=e.length;return this.filter(function(){for(var t=0;n>t;t++)if(se.contains(this,e[t]))return!0})},not:function(t){return this.pushStack(h(this,t||[],!0))},filter:function(t){return this.pushStack(h(this,t||[],!1))},is:function(t){return!!h(this,"string"==typeof t&&Ee.test(t)?se(t):t||[],!1).length},closest:function(t,e){for(var n,r=0,i=this.length,o=[],s=Ee.test(t)||"string"!=typeof t?se(t,e||this.context):0;i>r;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&se.find.matchesSelector(n,t))){n=o.push(n);break}return this.pushStack(o.length>1?se.unique(o):o)},index:function(t){return t?"string"==typeof t?ne.call(se(t),this[0]):ne.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){var n="string"==typeof t?se(t,e):se.makeArray(t&&t.nodeType?[t]:t),r=se.merge(this.get(),n);return this.pushStack(se.unique(r))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),se.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return se.dir(t,"parentNode")},parentsUntil:function(t,e,n){return se.dir(t,"parentNode",n)},next:function(t){return u(t,"nextSibling")},prev:function(t){return u(t,"previousSibling")},nextAll:function(t){return se.dir(t,"nextSibling")},prevAll:function(t){return se.dir(t,"previousSibling")},nextUntil:function(t,e,n){return se.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return se.dir(t,"previousSibling",n)},siblings:function(t){return se.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return se.sibling(t.firstChild)},contents:function(t){return t.contentDocument||se.merge([],t.childNodes)}},function(t,e){se.fn[t]=function(n,r){var i=se.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=se.filter(r,i)),this.length>1&&(Oe[t]||se.unique(i),Ae.test(t)&&i.reverse()),this.pushStack(i)}}),se.extend({filter:function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?se.find.matchesSelector(r,t)?[r]:[]:se.find.matches(t,se.grep(e,function(t){return 1===t.nodeType}))},dir:function(t,n,r){for(var i=[],o=r!==e;(t=t[n])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&se(t).is(r))break;i.push(t)}return i},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}});var Pe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ze=/<([\w:]+)/,De=/<|&#?\w+;/,Fe=/<(?:script|style|link)/i,$e=/^(?:checkbox|radio)$/i,qe=/checked\s*(?:[^=]|=\s*.checked.)/i,Be=/^$|\/(?:java|ecma)script/i,Ie=/^true\/(.*)/,Le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Re={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Re.optgroup=Re.option,Re.tbody=Re.tfoot=Re.colgroup=Re.caption=Re.thead,Re.th=Re.td,se.fn.extend({text:function(t){return se.access(this,function(t){return t===e?se.text(this):this.empty().append((this[0]&&this[0].ownerDocument||W).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=p(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=p(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,r=t?se.filter(t,this):this,i=0;null!=(n=r[i]);i++)e||1!==n.nodeType||se.cleanData(m(n)),n.parentNode&&(e&&se.contains(n.ownerDocument,n)&&f(m(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(se.cleanData(m(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return se.clone(this,t,e)})},html:function(t){return se.access(this,function(t){var n=this[0]||{},r=0,i=this.length;if(t===e&&1===n.nodeType)return n.innerHTML;if("string"==typeof t&&!Fe.test(t)&&!Re[(ze.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Pe,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(se.cleanData(m(n,!1)),n.innerHTML=t);n=0}catch(o){}}n&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=se.map(this,function(t){return[t.nextSibling,t.parentNode]}),e=0;return this.domManip(arguments,function(n){var r=t[e++],i=t[e++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),se(this).remove(),i.insertBefore(n,r))},!0),e?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e,n){t=Q.apply([],t);var r,i,o,s,a,l,c=0,u=this.length,h=this,p=u-1,f=t[0],g=se.isFunction(f);if(g||!(1>=u||"string"!=typeof f||se.support.checkClone)&&qe.test(f))return this.each(function(r){var i=h.eq(r);g&&(t[0]=f.call(this,r,i.html())),i.domManip(t,e,n)});if(u&&(r=se.buildFragment(t,this[0].ownerDocument,!1,!n&&this),i=r.firstChild,1===r.childNodes.length&&(r=i),i)){for(o=se.map(m(r,"script"),d),s=o.length;u>c;c++)a=r,c!==p&&(a=se.clone(a,!0,!0),s&&se.merge(o,m(a,"script"))),e.call(this[c],a,c);if(s)for(l=o[o.length-1].ownerDocument,se.map(o,_),c=0;s>c;c++)a=o[c],Be.test(a.type||"")&&!me.access(a,"globalEval")&&se.contains(l,a)&&(a.src?se._evalUrl(a.src):se.globalEval(a.textContent.replace(Le,"")))}return this}}),se.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){se.fn[t]=function(t){for(var n,r=[],i=se(t),o=i.length-1,s=0;o>=s;s++)n=s===o?this:this.clone(!0),se(i[s])[e](n),te.apply(r,n.get());return this.pushStack(r)}}),se.extend({clone:function(t,e,n){var r,i,o,s,a=t.cloneNode(!0),l=se.contains(t.ownerDocument,t);if(!(se.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||se.isXMLDoc(t)))for(s=m(a),o=m(t),r=0,i=o.length;i>r;r++)v(o[r],s[r]);if(e)if(n)for(o=o||m(t),s=s||m(a),r=0,i=o.length;i>r;r++)g(o[r],s[r]);else g(t,a);return s=m(a,"script"),s.length>0&&f(s,!l&&m(t,"script")),a},buildFragment:function(t,e,n,r){for(var i,o,s,a,l,c,u=0,h=t.length,p=e.createDocumentFragment(),d=[];h>u;u++)if(i=t[u],i||0===i)if("object"===se.type(i))se.merge(d,i.nodeType?[i]:i);else if(De.test(i)){for(o=o||p.appendChild(e.createElement("div")),s=(ze.exec(i)||["",""])[1].toLowerCase(),a=Re[s]||Re._default,o.innerHTML=a[1]+i.replace(Pe,"<$1></$2>")+a[2],c=a[0];c--;)o=o.lastChild;se.merge(d,o.childNodes),o=p.firstChild,o.textContent=""}else d.push(e.createTextNode(i));for(p.textContent="",u=0;i=d[u++];)if((!r||-1===se.inArray(i,r))&&(l=se.contains(i.ownerDocument,i),o=m(p.appendChild(i),"script"),l&&f(o),n))for(c=0;i=o[c++];)Be.test(i.type||"")&&n.push(i);return p},cleanData:function(t){for(var n,r,i,s,a,l,c=se.event.special,u=0;(r=t[u])!==e;u++){if(o.accepts(r)&&(a=r[me.expando],a&&(n=me.cache[a]))){if(i=Object.keys(n.events||{}),i.length)for(l=0;(s=i[l])!==e;l++)c[s]?se.event.remove(r,s):se.removeEvent(r,s,n.handle);me.cache[a]&&delete me.cache[a]}delete ge.cache[r[ge.expando]]}},_evalUrl:function(t){return se.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),se.fn.extend({wrapAll:function(t){var e;return se.isFunction(t)?this.each(function(e){se(this).wrapAll(t.call(this,e))}):(this[0]&&(e=se(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return se.isFunction(t)?this.each(function(e){se(this).wrapInner(t.call(this,e))}):this.each(function(){var e=se(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=se.isFunction(t);return this.each(function(n){se(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){se.nodeName(this,"body")||se(this).replaceWith(this.childNodes)}).end()}});var Ue,Ve,He=/^(none|table(?!-c[ea]).+)/,We=/^margin/,Ye=new RegExp("^("+ae+")(.*)$","i"),Ge=new RegExp("^("+ae+")(?!px)[a-z%]+$","i"),Xe=new RegExp("^([+-])=("+ae+")","i"),Je={BODY:"block"},Ke={position:"absolute",visibility:"hidden",display:"block"},Ze={letterSpacing:0,fontWeight:400},Qe=["Top","Right","Bottom","Left"],tn=["Webkit","O","Moz","ms"];se.fn.extend({css:function(t,n){return se.access(this,function(t,n,r){var i,o,s={},a=0;if(se.isArray(n)){for(i=w(t),o=n.length;o>a;a++)s[n[a]]=se.css(t,n[a],!1,i);return s}return r!==e?se.style(t,n,r):se.css(t,n)},t,n,arguments.length>1)},show:function(){return x(this,!0)},hide:function(){return x(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){b(this)?se(this).show():se(this).hide()})}}),se.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Ue(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(t,n,r,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,s,a,l=se.camelCase(n),c=t.style;return n=se.cssProps[l]||(se.cssProps[l]=y(c,l)),a=se.cssHooks[n]||se.cssHooks[l],r===e?a&&"get"in a&&(o=a.get(t,!1,i))!==e?o:c[n]:(s=typeof r,"string"===s&&(o=Xe.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(se.css(t,n)),s="number"),null==r||"number"===s&&isNaN(r)||("number"!==s||se.cssNumber[l]||(r+="px"),se.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(c[n]="inherit"),a&&"set"in a&&(r=a.set(t,r,i))===e||(c[n]=r)),void 0)}},css:function(t,n,r,i){var o,s,a,l=se.camelCase(n);return n=se.cssProps[l]||(se.cssProps[l]=y(t.style,l)),a=se.cssHooks[n]||se.cssHooks[l],a&&"get"in a&&(o=a.get(t,!0,r)),o===e&&(o=Ue(t,n,i)),"normal"===o&&n in Ze&&(o=Ze[n]),""===r||r?(s=parseFloat(o),r===!0||se.isNumeric(s)?s||0:o):o}}),Ue=function(t,n,r){var i,o,s,a=r||w(t),l=a?a.getPropertyValue(n)||a[n]:e,c=t.style;return a&&(""!==l||se.contains(t.ownerDocument,t)||(l=se.style(t,n)),Ge.test(l)&&We.test(n)&&(i=c.width,o=c.minWidth,s=c.maxWidth,c.minWidth=c.maxWidth=c.width=l,l=a.width,c.width=i,c.minWidth=o,c.maxWidth=s)),l},se.each(["height","width"],function(t,e){se.cssHooks[e]={get:function(t,n,r){return n?0===t.offsetWidth&&He.test(se.css(t,"display"))?se.swap(t,Ke,function(){return C(t,e,r)}):C(t,e,r):void 0},set:function(t,n,r){var i=r&&w(t);return k(t,n,r?j(t,e,r,se.support.boxSizing&&"border-box"===se.css(t,"boxSizing",!1,i),i):0)}}}),se(function(){se.support.reliableMarginRight||(se.cssHooks.marginRight={get:function(t,e){return e?se.swap(t,{display:"inline-block"},Ue,[t,"marginRight"]):void 0}}),!se.support.pixelPosition&&se.fn.position&&se.each(["top","left"],function(t,e){se.cssHooks[e]={get:function(t,n){return n?(n=Ue(t,e),Ge.test(n)?se(t).position()[e]+"px":n):void 0}}})}),se.expr&&se.expr.filters&&(se.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},se.expr.filters.visible=function(t){return!se.expr.filters.hidden(t)}),se.each({margin:"",padding:"",border:"Width"},function(t,e){se.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];4>r;r++)i[t+Qe[r]+e]=o[r]||o[r-2]||o[0];return i}},We.test(t)||(se.cssHooks[t+e].set=k)});var en=/%20/g,nn=/\[\]$/,rn=/\r?\n/g,on=/^(?:submit|button|image|reset|file)$/i,sn=/^(?:input|select|textarea|keygen)/i;se.fn.extend({serialize:function(){return se.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=se.prop(this,"elements");return t?se.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!se(this).is(":disabled")&&sn.test(this.nodeName)&&!on.test(t)&&(this.checked||!$e.test(t))}).map(function(t,e){var n=se(this).val();return null==n?null:se.isArray(n)?se.map(n,function(t){return{name:e.name,value:t.replace(rn,"\r\n")}}):{name:e.name,value:n.replace(rn,"\r\n")}}).get()}}),se.param=function(t,n){var r,i=[],o=function(t,e){e=se.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(n===e&&(n=se.ajaxSettings&&se.ajaxSettings.traditional),se.isArray(t)||t.jquery&&!se.isPlainObject(t))se.each(t,function(){o(this.name,this.value)});else for(r in t)N(r,t[r],n,o);return i.join("&").replace(en,"+")},se.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){se.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),se.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var an,ln,cn=se.now(),un=/\?/,hn=/#.*$/,pn=/([?&])_=[^&]*/,dn=/^(.*?):[ \t]*([^\r\n]*)$/gm,_n=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,fn=/^(?:GET|HEAD)$/,gn=/^\/\//,mn=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,vn=se.fn.load,yn={},bn={},wn="*/".concat("*");try{ln=H.href}catch(xn){ln=W.createElement("a"),ln.href="",ln=ln.href}an=mn.exec(ln.toLowerCase())||[],se.fn.load=function(t,n,r){if("string"!=typeof t&&vn)return vn.apply(this,arguments);var i,o,s,a=this,l=t.indexOf(" ");return l>=0&&(i=t.slice(l),t=t.slice(0,l)),se.isFunction(n)?(r=n,n=e):n&&"object"==typeof n&&(o="POST"),a.length>0&&se.ajax({url:t,type:o,dataType:"html",data:n}).done(function(t){s=arguments,a.html(i?se("<div>").append(se.parseHTML(t)).find(i):t)}).complete(r&&function(t,e){a.each(r,s||[t.responseText,e,t])}),this},se.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){se.fn[e]=function(t){return this.on(e,t)}}),se.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ln,type:"GET",isLocal:_n.test(an[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":wn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":se.parseJSON,"text xml":se.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?E(E(t,se.ajaxSettings),e):E(se.ajaxSettings,t)},ajaxPrefilter:S(yn),ajaxTransport:S(bn),ajax:function(t,n){function r(t,n,r,a){var c,h,v,y,w,k=n;2!==b&&(b=2,l&&clearTimeout(l),i=e,s=a||"",x.readyState=t>0?4:0,c=t>=200&&300>t||304===t,r&&(y=O(p,x,r)),y=P(p,y,x,c),c?(p.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(se.lastModified[o]=w),w=x.getResponseHeader("etag"),w&&(se.etag[o]=w)),204===t||"HEAD"===p.type?k="nocontent":304===t?k="notmodified":(k=y.state,h=y.data,v=y.error,c=!v)):(v=k,(t||!k)&&(k="error",0>t&&(t=0))),x.status=t,x.statusText=(n||k)+"",c?f.resolveWith(d,[h,k,x]):f.rejectWith(d,[x,k,v]),x.statusCode(m),m=e,u&&_.trigger(c?"ajaxSuccess":"ajaxError",[x,p,c?h:v]),g.fireWith(d,[x,k]),u&&(_.trigger("ajaxComplete",[x,p]),--se.active||se.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=e),n=n||{};var i,o,s,a,l,c,u,h,p=se.ajaxSetup({},n),d=p.context||p,_=p.context&&(d.nodeType||d.jquery)?se(d):se.event,f=se.Deferred(),g=se.Callbacks("once memory"),m=p.statusCode||{},v={},y={},b=0,w="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!a)for(a={};e=dn.exec(s);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?s:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=y[n]=y[n]||t,v[t]=e),this},overrideMimeType:function(t){return b||(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>b)for(e in t)m[e]=[m[e],t[e]];else x.always(t[x.status]);return this},abort:function(t){var e=t||w;return i&&i.abort(e),r(0,e),this}};if(f.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,p.url=((t||p.url||ln)+"").replace(hn,"").replace(gn,an[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=se.trim(p.dataType||"*").toLowerCase().match(le)||[""],null==p.crossDomain&&(c=mn.exec(p.url.toLowerCase()),p.crossDomain=!(!c||c[1]===an[1]&&c[2]===an[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(an[3]||("http:"===an[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=se.param(p.data,p.traditional)),A(yn,p,n,x),2===b)return x;u=p.global,u&&0===se.active++&&se.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!fn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(un.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=pn.test(o)?o.replace(pn,"$1_="+cn++):o+(un.test(o)?"&":"?")+"_="+cn++)),p.ifModified&&(se.lastModified[o]&&x.setRequestHeader("If-Modified-Since",se.lastModified[o]),se.etag[o]&&x.setRequestHeader("If-None-Match",se.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",p.contentType),x.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+wn+"; q=0.01":""):p.accepts["*"]);for(h in p.headers)x.setRequestHeader(h,p.headers[h]);if(p.beforeSend&&(p.beforeSend.call(d,x,p)===!1||2===b))return x.abort();w="abort";for(h in{success:1,error:1,complete:1})x[h](p[h]);if(i=A(bn,p,n,x)){x.readyState=1,u&&_.trigger("ajaxSend",[x,p]),p.async&&p.timeout>0&&(l=setTimeout(function(){x.abort("timeout")},p.timeout));try{b=1,i.send(v,r)}catch(k){if(!(2>b))throw k;r(-1,k)}}else r(-1,"No Transport");return x},getJSON:function(t,e,n){return se.get(t,e,n,"json")},getScript:function(t,n){return se.get(t,e,n,"script")}}),se.each(["get","post"],function(t,n){se[n]=function(t,r,i,o){return se.isFunction(r)&&(o=o||i,i=r,r=e),se.ajax({url:t,type:n,dataType:o,data:r,success:i})}}),se.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return se.globalEval(t),t}}}),se.ajaxPrefilter("script",function(t){t.cache===e&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),se.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(r,i){e=se("<script>").prop({async:!0,charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),W.head.appendChild(e[0])},abort:function(){n&&n()}}}});var kn=[],jn=/(=)\?(?=&|$)|\?\?/;se.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=kn.pop()||se.expando+"_"+cn++;return this[t]=!0,t}}),se.ajaxPrefilter("json jsonp",function(n,r,i){var o,s,a,l=n.jsonp!==!1&&(jn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&jn.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=se.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(jn,"$1"+o):n.jsonp!==!1&&(n.url+=(un.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return a||se.error(o+" was not called"),a[0]},n.dataTypes[0]="json",s=t[o],t[o]=function(){a=arguments},i.always(function(){t[o]=s,n[o]&&(n.jsonpCallback=r.jsonpCallback,kn.push(o)),a&&se.isFunction(s)&&s(a[0]),a=s=e}),"script"):void 0}),se.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var Cn=se.ajaxSettings.xhr(),Tn={0:200,1223:204},Mn=0,Nn={};t.ActiveXObject&&se(t).on("unload",function(){for(var t in Nn)Nn[t]();Nn=e}),se.support.cors=!!Cn&&"withCredentials"in Cn,se.support.ajax=Cn=!!Cn,se.ajaxTransport(function(t){var n;return se.support.cors||Cn&&!t.crossDomain?{send:function(r,i){var o,s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(o in r)a.setRequestHeader(o,r[o]);n=function(t){return function(){n&&(delete Nn[s],n=a.onload=a.onerror=null,"abort"===t?a.abort():"error"===t?i(a.status||404,a.statusText):i(Tn[a.status]||a.status,a.statusText,"string"==typeof a.responseText?{text:a.responseText}:e,a.getAllResponseHeaders()))}},a.onload=n(),a.onerror=n("error"),n=Nn[s=Mn++]=n("abort"),a.send(t.hasContent&&t.data||null)},abort:function(){n&&n()}}:void 0});var Sn,An,En=/^(?:toggle|show|hide)$/,On=new RegExp("^(?:([+-])=|)("+ae+")([a-z%]*)$","i"),Pn=/queueHooks$/,zn=[q],Dn={"*":[function(t,e){var n=this.createTween(t,e),r=n.cur(),i=On.exec(e),o=i&&i[3]||(se.cssNumber[t]?"":"px"),s=(se.cssNumber[t]||"px"!==o&&+r)&&On.exec(se.css(n.elem,t)),a=1,l=20;if(s&&s[3]!==o){o=o||s[3],i=i||[],s=+r||1;do a=a||".5",s/=a,se.style(n.elem,t,s+o);while(a!==(a=n.cur()/r)&&1!==a&&--l)}return i&&(s=n.start=+s||+r||0,n.unit=o,n.end=i[1]?s+(i[1]+1)*i[2]:+i[2]),n}]};se.Animation=se.extend(F,{tweener:function(t,e){se.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,r=0,i=t.length;i>r;r++)n=t[r],Dn[n]=Dn[n]||[],Dn[n].unshift(e)},prefilter:function(t,e){e?zn.unshift(t):zn.push(t)}}),se.Tween=B,B.prototype={constructor:B,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||"swing",this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(se.cssNumber[n]?"":"px")},cur:function(){var t=B.propHooks[this.prop];return t&&t.get?t.get(this):B.propHooks._default.get(this)},run:function(t){var e,n=B.propHooks[this.prop];return this.pos=e=this.options.duration?se.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):B.propHooks._default.set(this),this}},B.prototype.init.prototype=B.prototype,B.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=se.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){se.fx.step[t.prop]?se.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[se.cssProps[t.prop]]||se.cssHooks[t.prop])?se.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},B.propHooks.scrollTop=B.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},se.each(["toggle","show","hide"],function(t,e){var n=se.fn[e];se.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(I(e,!0),t,r,i)}}),se.fn.extend({fadeTo:function(t,e,n,r){return this.filter(b).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=se.isEmptyObject(t),o=se.speed(e,n,r),s=function(){var e=F(this,se.extend({},t),o);(i||me.get(this,"finish"))&&e.stop(!0)};return s.finish=s,i||o.queue===!1?this.each(s):this.queue(o.queue,s)},stop:function(t,n,r){var i=function(t){var e=t.stop;delete t.stop,e(r)};return"string"!=typeof t&&(r=n,n=t,t=e),n&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,n=null!=t&&t+"queueHooks",o=se.timers,s=me.get(this);if(n)s[n]&&s[n].stop&&i(s[n]);else for(n in s)s[n]&&s[n].stop&&Pn.test(n)&&i(s[n]);for(n=o.length;n--;)o[n].elem!==this||null!=t&&o[n].queue!==t||(o[n].anim.stop(r),e=!1,o.splice(n,1));(e||!r)&&se.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=me.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=se.timers,s=r?r.length:0;for(n.finish=!0,se.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;s>e;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish
            })}}),se.each({slideDown:I("show"),slideUp:I("hide"),slideToggle:I("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){se.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),se.speed=function(t,e,n){var r=t&&"object"==typeof t?se.extend({},t):{complete:n||!n&&e||se.isFunction(t)&&t,duration:t,easing:n&&e||e&&!se.isFunction(e)&&e};return r.duration=se.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in se.fx.speeds?se.fx.speeds[r.duration]:se.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){se.isFunction(r.old)&&r.old.call(this),r.queue&&se.dequeue(this,r.queue)},r},se.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},se.timers=[],se.fx=B.prototype.init,se.fx.tick=function(){var t,n=se.timers,r=0;for(Sn=se.now();r<n.length;r++)t=n[r],t()||n[r]!==t||n.splice(r--,1);n.length||se.fx.stop(),Sn=e},se.fx.timer=function(t){t()&&se.timers.push(t)&&se.fx.start()},se.fx.interval=13,se.fx.start=function(){An||(An=setInterval(se.fx.tick,se.fx.interval))},se.fx.stop=function(){clearInterval(An),An=null},se.fx.speeds={slow:600,fast:200,_default:400},se.fx.step={},se.expr&&se.expr.filters&&(se.expr.filters.animated=function(t){return se.grep(se.timers,function(e){return t===e.elem}).length}),se.fn.offset=function(t){if(arguments.length)return t===e?this:this.each(function(e){se.offset.setOffset(this,t,e)});var n,r,i=this[0],o={top:0,left:0},s=i&&i.ownerDocument;if(s)return n=s.documentElement,se.contains(n,i)?(typeof i.getBoundingClientRect!==V&&(o=i.getBoundingClientRect()),r=L(s),{top:o.top+r.pageYOffset-n.clientTop,left:o.left+r.pageXOffset-n.clientLeft}):o},se.offset={setOffset:function(t,e,n){var r,i,o,s,a,l,c,u=se.css(t,"position"),h=se(t),p={};"static"===u&&(t.style.position="relative"),a=h.offset(),o=se.css(t,"top"),l=se.css(t,"left"),c=("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1,c?(r=h.position(),s=r.top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(l)||0),se.isFunction(e)&&(e=e.call(t,n,a)),null!=e.top&&(p.top=e.top-a.top+s),null!=e.left&&(p.left=e.left-a.left+i),"using"in e?e.using.call(t,p):h.css(p)}},se.fn.extend({position:function(){if(this[0]){var t,e,n=this[0],r={top:0,left:0};return"fixed"===se.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),se.nodeName(t[0],"html")||(r=t.offset()),r.top+=se.css(t[0],"borderTopWidth",!0),r.left+=se.css(t[0],"borderLeftWidth",!0)),{top:e.top-r.top-se.css(n,"marginTop",!0),left:e.left-r.left-se.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Y;t&&!se.nodeName(t,"html")&&"static"===se.css(t,"position");)t=t.offsetParent;return t||Y})}}),se.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,r){var i="pageYOffset"===r;se.fn[n]=function(o){return se.access(this,function(n,o,s){var a=L(n);return s===e?a?a[r]:n[o]:(a?a.scrollTo(i?t.pageXOffset:s,i?s:t.pageYOffset):n[o]=s,void 0)},n,o,arguments.length,null)}}),se.each({Height:"height",Width:"width"},function(t,n){se.each({padding:"inner"+t,content:n,"":"outer"+t},function(r,i){se.fn[i]=function(i,o){var s=arguments.length&&(r||"boolean"!=typeof i),a=r||(i===!0||o===!0?"margin":"border");return se.access(this,function(n,r,i){var o;return se.isWindow(n)?n.document.documentElement["client"+t]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+t],o["scroll"+t],n.body["offset"+t],o["offset"+t],o["client"+t])):i===e?se.css(n,r,a):se.style(n,r,i,a)},n,s?i:e,s,null)}})}),se.fn.size=function(){return this.length},se.fn.andSelf=se.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=se:"function"==typeof n&&n.amd&&n("jquery",[],function(){return se}),"object"==typeof t&&"object"==typeof t.document&&(t.jQuery=t.$=se)}(window),function(t,r){"undefined"!=typeof exports?r(t,exports,e("underscore")):"function"==typeof n&&n.amd?n("backbone",["underscore","jquery","exports"],function(e,n,i){t.Backbone=r(t,i,e,n)}):t.Backbone=r(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}(this,function(t,e,n,r){var i=t.Backbone,o=[];o.push;var s=o.slice;o.splice,e.VERSION="1.1.0",e.$=r,e.noConflict=function(){return t.Backbone=i,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a=e.Events={on:function(t,e,n){if(!c(this,"on",t,[e,n])||!e)return this;this._events||(this._events={});var r=this._events[t]||(this._events[t]=[]);return r.push({callback:e,context:n,ctx:n||this}),this},once:function(t,e,r){if(!c(this,"once",t,[e,r])||!e)return this;var i=this,o=n.once(function(){i.off(t,o),e.apply(this,arguments)});return o._callback=e,this.on(t,o,r)},off:function(t,e,r){var i,o,s,a,l,u,h,p;if(!this._events||!c(this,"off",t,[e,r]))return this;if(!t&&!e&&!r)return this._events={},this;for(a=t?[t]:n.keys(this._events),l=0,u=a.length;u>l;l++)if(t=a[l],s=this._events[t]){if(this._events[t]=i=[],e||r)for(h=0,p=s.length;p>h;h++)o=s[h],(e&&e!==o.callback&&e!==o.callback._callback||r&&r!==o.context)&&i.push(o);i.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=s.call(arguments,1);if(!c(this,"trigger",t,e))return this;var n=this._events[t],r=this._events.all;return n&&u(n,e),r&&u(r,arguments),this},stopListening:function(t,e,r){var i=this._listeningTo;if(!i)return this;var o=!e&&!r;r||"object"!=typeof e||(r=this),t&&((i={})[t._listenId]=t);for(var s in i)t=i[s],t.off(e,r,this),(o||n.isEmpty(t._events))&&delete this._listeningTo[s];return this}},l=/\s+/,c=function(t,e,n,r){if(!n)return!0;if("object"==typeof n){for(var i in n)t[e].apply(t,[i,n[i]].concat(r));return!1}if(l.test(n)){for(var o=n.split(l),s=0,a=o.length;a>s;s++)t[e].apply(t,[o[s]].concat(r));return!1}return!0},u=function(t,e){var n,r=-1,i=t.length,o=e[0],s=e[1],a=e[2];switch(e.length){case 0:for(;++r<i;)(n=t[r]).callback.call(n.ctx);return;case 1:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o);return;case 2:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o,s);return;case 3:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o,s,a);return;default:for(;++r<i;)(n=t[r]).callback.apply(n.ctx,e)}},h={listenTo:"on",listenToOnce:"once"};n.each(h,function(t,e){a[e]=function(e,r,i){var o=this._listeningTo||(this._listeningTo={}),s=e._listenId||(e._listenId=n.uniqueId("l"));return o[s]=e,i||"object"!=typeof r||(i=this),e[t](r,i,this),this}}),a.bind=a.on,a.unbind=a.off,n.extend(e,a);var p=e.Model=function(t,e){var r=t||{};e||(e={}),this.cid=n.uniqueId("c"),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(r=this.parse(r,e)||{}),r=n.defaults({},r,n.result(this,"defaults")),this.set(r,e),this.changed={},this.initialize.apply(this,arguments)};n.extend(p.prototype,a,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(){return n.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return n.escape(this.get(t))},has:function(t){return null!=this.get(t)},set:function(t,e,r){var i,o,s,a,l,c,u,h;if(null==t)return this;if("object"==typeof t?(o=t,r=e):(o={})[t]=e,r||(r={}),!this._validate(o,r))return!1;s=r.unset,l=r.silent,a=[],c=this._changing,this._changing=!0,c||(this._previousAttributes=n.clone(this.attributes),this.changed={}),h=this.attributes,u=this._previousAttributes,this.idAttribute in o&&(this.id=o[this.idAttribute]);for(i in o)e=o[i],n.isEqual(h[i],e)||a.push(i),n.isEqual(u[i],e)?delete this.changed[i]:this.changed[i]=e,s?delete h[i]:h[i]=e;if(!l){a.length&&(this._pending=!0);for(var p=0,d=a.length;d>p;p++)this.trigger("change:"+a[p],this,h[a[p]],r)}if(c)return this;if(!l)for(;this._pending;)this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,n.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var r in this.attributes)e[r]=void 0;return this.set(e,n.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!n.isEmpty(this.changed):n.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?n.clone(this.changed):!1;var e,r=!1,i=this._changing?this._previousAttributes:this.attributes;for(var o in t)n.isEqual(i[o],e=t[o])||((r||(r={}))[o]=e);return r},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(t){t=t?n.clone(t):{},void 0===t.parse&&(t.parse=!0);var e=this,r=t.success;return t.success=function(n){return e.set(e.parse(n,t),t)?(r&&r(e,n,t),e.trigger("sync",e,n,t),void 0):!1},$(this,t),this.sync("read",this,t)},save:function(t,e,r){var i,o,s,a=this.attributes;if(null==t||"object"==typeof t?(i=t,r=e):(i={})[t]=e,r=n.extend({validate:!0},r),i&&!r.wait){if(!this.set(i,r))return!1}else if(!this._validate(i,r))return!1;i&&r.wait&&(this.attributes=n.extend({},a,i)),void 0===r.parse&&(r.parse=!0);var l=this,c=r.success;return r.success=function(t){l.attributes=a;var e=l.parse(t,r);return r.wait&&(e=n.extend(i||{},e)),n.isObject(e)&&!l.set(e,r)?!1:(c&&c(l,t,r),l.trigger("sync",l,t,r),void 0)},$(this,r),o=this.isNew()?"create":r.patch?"patch":"update","patch"===o&&(r.attrs=i),s=this.sync(o,this,r),i&&r.wait&&(this.attributes=a),s},destroy:function(t){t=t?n.clone(t):{};var e=this,r=t.success,i=function(){e.trigger("destroy",e,e.collection,t)};if(t.success=function(n){(t.wait||e.isNew())&&i(),r&&r(e,n,t),e.isNew()||e.trigger("sync",e,n,t)},this.isNew())return t.success(),!1;$(this,t);var o=this.sync("delete",this,t);return t.wait||i(),o},url:function(){var t=n.result(this,"urlRoot")||n.result(this.collection,"url")||F();return this.isNew()?t:t+("/"===t.charAt(t.length-1)?"":"/")+encodeURIComponent(this.id)},parse:function(t){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return null==this.id},isValid:function(t){return this._validate({},n.extend(t||{},{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=n.extend({},this.attributes,t);var r=this.validationError=this.validate(t,e)||null;return r?(this.trigger("invalid",this,r,n.extend(e,{validationError:r})),!1):!0}});var d=["keys","values","pairs","invert","pick","omit"];n.each(d,function(t){p.prototype[t]=function(){var e=s.call(arguments);return e.unshift(this.attributes),n[t].apply(n,e)}});var _=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,n.extend({silent:!0},e))},f={add:!0,remove:!0,merge:!0},g={add:!0,remove:!1};n.extend(_.prototype,a,{model:p,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,n.extend({merge:!1},e,g))},remove:function(t,e){var r=!n.isArray(t);t=r?[t]:n.clone(t),e||(e={});var i,o,s,a;for(i=0,o=t.length;o>i;i++)a=t[i]=this.get(t[i]),a&&(delete this._byId[a.id],delete this._byId[a.cid],s=this.indexOf(a),this.models.splice(s,1),this.length--,e.silent||(e.index=s,a.trigger("remove",a,this,e)),this._removeReference(a));return r?t[0]:t},set:function(t,e){e=n.defaults({},e,f),e.parse&&(t=this.parse(t,e));var r=!n.isArray(t);t=r?t?[t]:[]:n.clone(t);var i,o,s,a,l,c,u,h=e.at,d=this.model,_=this.comparator&&null==h&&e.sort!==!1,g=n.isString(this.comparator)?this.comparator:null,m=[],v=[],y={},b=e.add,w=e.merge,x=e.remove,k=!_&&b&&x?[]:!1;for(i=0,o=t.length;o>i;i++){if(l=t[i],s=l instanceof p?a=l:l[d.prototype.idAttribute],c=this.get(s))x&&(y[c.cid]=!0),w&&(l=l===a?a.attributes:l,e.parse&&(l=c.parse(l,e)),c.set(l,e),_&&!u&&c.hasChanged(g)&&(u=!0)),t[i]=c;else if(b){if(a=t[i]=this._prepareModel(l,e),!a)continue;m.push(a),a.on("all",this._onModelEvent,this),this._byId[a.cid]=a,null!=a.id&&(this._byId[a.id]=a)}k&&k.push(c||a)}if(x){for(i=0,o=this.length;o>i;++i)y[(a=this.models[i]).cid]||v.push(a);v.length&&this.remove(v,e)}if(m.length||k&&k.length)if(_&&(u=!0),this.length+=m.length,null!=h)for(i=0,o=m.length;o>i;i++)this.models.splice(h+i,0,m[i]);else{k&&(this.models.length=0);var j=k||m;for(i=0,o=j.length;o>i;i++)this.models.push(j[i])}if(u&&this.sort({silent:!0}),!e.silent){for(i=0,o=m.length;o>i;i++)(a=m[i]).trigger("add",a,this,e);(u||k&&k.length)&&this.trigger("sort",this,e)}return r?t[0]:t},reset:function(t,e){e||(e={});for(var r=0,i=this.models.length;i>r;r++)this._removeReference(this.models[r]);return e.previousModels=this.models,this._reset(),t=this.add(t,n.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,n.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t),e},unshift:function(t,e){return this.add(t,n.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t),e},slice:function(){return s.apply(this.models,arguments)},get:function(t){return null==t?void 0:this._byId[t.id]||this._byId[t.cid]||this._byId[t]},at:function(t){return this.models[t]},where:function(t,e){return n.isEmpty(t)?e?void 0:[]:this[e?"find":"filter"](function(e){for(var n in t)if(t[n]!==e.get(n))return!1;return!0})},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return t||(t={}),n.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this)),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return n.invoke(this.models,"get",t)},fetch:function(t){t=t?n.clone(t):{},void 0===t.parse&&(t.parse=!0);var e=t.success,r=this;return t.success=function(n){var i=t.reset?"reset":"set";r[i](n,t),e&&e(r,n,t),r.trigger("sync",r,n,t)},$(this,t),this.sync("read",this,t)},create:function(t,e){if(e=e?n.clone(e):{},!(t=this._prepareModel(t,e)))return!1;e.wait||this.add(t,e);var r=this,i=e.success;return e.success=function(t,e,n){n.wait&&r.add(t,n),i&&i(t,e,n)},t.save(null,e),t},parse:function(t){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(t instanceof p)return t.collection||(t.collection=this),t;e=e?n.clone(e):{},e.collection=this;var r=new this.model(t,e);return r.validationError?(this.trigger("invalid",this,r.validationError,e),!1):r},_removeReference:function(t){this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,r){("add"!==t&&"remove"!==t||n===this)&&("destroy"===t&&this.remove(e,r),e&&t==="change:"+e.idAttribute&&(delete this._byId[e.previous(e.idAttribute)],null!=e.id&&(this._byId[e.id]=e)),this.trigger.apply(this,arguments))}});var m=["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain"];n.each(m,function(t){_.prototype[t]=function(){var e=s.call(arguments);return e.unshift(this.models),n[t].apply(n,e)}});var v=["groupBy","countBy","sortBy"];n.each(v,function(t){_.prototype[t]=function(e,r){var i=n.isFunction(e)?e:function(t){return t.get(e)};return n[t](this.models,i,r)}});var y=e.View=function(t){this.cid=n.uniqueId("view"),t||(t={}),n.extend(this,n.pick(t,w)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},b=/^(\S+)\s*(.*)$/,w=["model","collection","el","id","attributes","className","tagName","events"];n.extend(y.prototype,a,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,n){return this.$el&&this.undelegateEvents(),this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0],n!==!1&&this.delegateEvents(),this},delegateEvents:function(t){if(!t&&!(t=n.result(this,"events")))return this;this.undelegateEvents();for(var e in t){var r=t[e];if(n.isFunction(r)||(r=this[t[e]]),r){var i=e.match(b),o=i[1],s=i[2];r=n.bind(r,this),o+=".delegateEvents"+this.cid,""===s?this.$el.on(o,r):this.$el.on(o,s,r)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"),!1);else{var t=n.extend({},n.result(this,"attributes"));this.id&&(t.id=n.result(this,"id")),this.className&&(t["class"]=n.result(this,"className"));var r=e.$("<"+n.result(this,"tagName")+">").attr(t);this.setElement(r,!1)}}}),e.sync=function(t,r,i){var o=k[t];n.defaults(i||(i={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var s={type:o,dataType:"json"};if(i.url||(s.url=n.result(r,"url")||F()),null!=i.data||!r||"create"!==t&&"update"!==t&&"patch"!==t||(s.contentType="application/json",s.data=JSON.stringify(i.attrs||r.toJSON(i))),i.emulateJSON&&(s.contentType="application/x-www-form-urlencoded",s.data=s.data?{model:s.data}:{}),i.emulateHTTP&&("PUT"===o||"DELETE"===o||"PATCH"===o)){s.type="POST",i.emulateJSON&&(s.data._method=o);var a=i.beforeSend;i.beforeSend=function(t){return t.setRequestHeader("X-HTTP-Method-Override",o),a?a.apply(this,arguments):void 0}}"GET"===s.type||i.emulateJSON||(s.processData=!1),"PATCH"===s.type&&x&&(s.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var l=i.xhr=e.ajax(n.extend(s,i));return r.trigger("request",r,l,i),l};var x=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),k={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var j=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},C=/\((.*?)\)/g,T=/(\(\?)?:\w+/g,M=/\*\w+/g,N=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(j.prototype,a,{initialize:function(){},route:function(t,r,i){n.isRegExp(t)||(t=this._routeToRegExp(t)),n.isFunction(r)&&(i=r,r=""),i||(i=this[r]);var o=this;return e.history.route(t,function(n){var s=o._extractParameters(t,n);i&&i.apply(o,s),o.trigger.apply(o,["route:"+r].concat(s)),o.trigger("route",r,s),e.history.trigger("route",o,r,s)}),this},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var t,e=n.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(N,"\\$&").replace(C,"(?:$1)?").replace(T,function(t,e){return e?t:"([^/]+)"}).replace(M,"(.*?)"),new RegExp("^"+t+"$")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return n.map(r,function(t){return t?decodeURIComponent(t):null})}});var S=e.History=function(){this.handlers=[],n.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},A=/^[#\/]|\s+$/g,E=/^\/+|\/+$/g,O=/msie [\w.]+/,P=/\/$/,z=/[?#].*$/;S.started=!1,n.extend(S.prototype,a,{interval:50,getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(null==t)if(this._hasPushState||!this._wantsHashChange||e){t=this.location.pathname;var n=this.root.replace(P,"");t.indexOf(n)||(t=t.slice(n.length))}else t=this.getHash();return t.replace(A,"")},start:function(t){if(S.started)throw new Error("Backbone.history has already been started");S.started=!0,this.options=n.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var r=this.getFragment(),i=document.documentMode,o=O.exec(navigator.userAgent.toLowerCase())&&(!i||7>=i);this.root=("/"+this.root+"/").replace(E,"/"),o&&this._wantsHashChange&&(this.iframe=e.$('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo("body")[0].contentWindow,this.navigate(r)),this._hasPushState?e.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!o?e.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=r;var s=this.location,a=s.pathname.replace(/[^\/]$/,"$&/")===this.root;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!a)return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+this.location.search+"#"+this.fragment),!0;this._hasPushState&&a&&s.hash&&(this.fragment=this.getHash().replace(A,""),this.history.replaceState({},document.title,this.root+this.fragment+s.search))}return this.options.silent?void 0:this.loadUrl()},stop:function(){e.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),clearInterval(this._checkUrlInterval),S.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(){var t=this.getFragment();return t===this.fragment&&this.iframe&&(t=this.getFragment(this.getHash(this.iframe))),t===this.fragment?!1:(this.iframe&&this.navigate(t),this.loadUrl(),void 0)},loadUrl:function(t){return t=this.fragment=this.getFragment(t),n.any(this.handlers,function(e){return e.route.test(t)?(e.callback(t),!0):void 0})},navigate:function(t,e){if(!S.started)return!1;e&&e!==!0||(e={trigger:!!e});var n=this.root+(t=this.getFragment(t||""));if(t=t.replace(z,""),this.fragment!==t){if(this.fragment=t,""===t&&"/"!==n&&(n=n.slice(0,-1)),this._hasPushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getFragment(this.getHash(this.iframe))&&(e.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var r=t.href.replace(/(javascript:|#).*$/,"");t.replace(r+"#"+e)}else t.hash="#"+e}}),e.history=new S;var D=function(t,e){var r,i=this;r=t&&n.has(t,"constructor")?t.constructor:function(){return i.apply(this,arguments)},n.extend(r,i,e);var o=function(){this.constructor=r};return o.prototype=i.prototype,r.prototype=new o,t&&n.extend(r.prototype,t),r.__super__=i.prototype,r};p.extend=_.extend=j.extend=y.extend=S.extend=D;var F=function(){throw new Error('A "url" property or function must be specified')},$=function(t,e){var n=e.error;e.error=function(r){n&&n(t,r,e),t.trigger("error",t,r,e)}};return e}),function(){n("common/custom",["underscore"],function(t){var e;return e=function(){return t.uniqueId=function(t){var e,n,r,i,o;for(r=[],e="0123456789ABCDEF",n=o=0;31>=o;n=++o)r[n]=e.substr(Math.floor(16*Math.random()),1);return r[12]="4",r[16]=e.substr(8|3&r[16],1),i=r.join(""),t?t+"-"+i:i}},t.isNullOrUndefined=function(e){return t.isNull(e)||t.isUndefined(e)},t.setdefault=function(e,n,r){return t.has(e,n)?e[n]:(e[n]=r,r)},{monkey_patch:e}})}.call(this),function(){n("common/build_views",["underscore"],function(t){var e;return e=function(e,n,r,i){var o,s,a,l,c,u,h,p,d,_,f,g;null==i&&(i=[]),o=[];try{u=t.filter(n,function(n){return!t.has(e,n.id)})}catch(m){throw s=m,console.log(s),s}for(a=d=0,f=u.length;f>d;a=++d){c=u[a],p=t.extend({},r,{model:c});try{e[c.id]=a<i.length?new i[a](p):new c.default_view(p)}catch(m){throw s=m,console.log("error on model of",c,s),s}o.push(e[c.id])}for(h=t.difference(t.keys(e),t.pluck(n,"id")),_=0,g=h.length;g>_;_++)l=h[_],e[l].remove(),delete e[l];return o}})}.call(this),function(){n("common/safebind",["underscore"],function(t){var e;return e=function(e,n,r,i){var o;t.has(e,"eventers")||(e.eventers={});try{e.eventers[n.id]=n}catch(s){o=s}return null!=n?(n.on(r,i,e),n.on("destroy remove",function(){return delete e.eventers[n]},e)):console.log("error with binder",e,r),null}})}.call(this),function(){n("common/load_models",["require","./base"],function(t){var e;return e=function(e){var n,r,i,o,s,a,l,c,u,h,p,d,_,f,g,m,v;for(a=[],l=[],n=t("./base").Collections,c=0,d=e.length;d>c;c++)s=e[c],i=n(s.type),r=s.attributes,i&&i.get(r.id)?l.push([i,r]):a.push([i,r]);for(u=0,_=a.length;_>u;u++)o=a[u],i=o[0],r=o[1],i&&i.add(r,{silent:!0});for(h=0,f=a.length;f>h;h++)o=a[h],i=o[0],r=o[1],i&&i.get(r.id).dinitialize(r);for(p=0,g=a.length;g>p;p++)o=a[p],i=o[0],r=o[1],i&&(s=i.get(r.id),s.trigger("add",s,i,{}));for(v=0,m=l.length;m>v;v++)o=l[v],i=o[0],r=o[1],i&&i.get(r.id).set(r);return null}})}.call(this),function(){n("common/bulk_save",["underscore","jquery","require","./base","./load_models"],function(t,e,n,r,i){var o;return o=function(r){var o,s,a,l,c,u;if(o=n("./base").Config,s=r[0].get("doc"),null==s)throw new Error("Unset 'doc' in "+r[0]);return a=function(){var e,n,i;for(i=[],e=0,n=r.length;n>e;e++)l=r[e],i.push({type:l.type,attributes:t.clone(l.attributes)});return i}(),a=JSON.stringify(a),c=o.prefix+"/bokeh/bb/"+s+"/bulkupsert",u=e.ajax({type:"POST",url:c,contentType:"application/json",data:a,header:{client:"javascript"}}),u.done(function(t){return i(t.modelspecs)}),u}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("common/continuum_view",["underscore","backbone"],function(n,r){var i,o;return i=function(r){function i(){return o=i.__super__.constructor.apply(this,arguments)}return e(i,r),i.prototype.initialize=function(t){return n.has(t,"id")?void 0:this.id=n.uniqueId("ContinuumView")},i.prototype.bind_bokeh_events=function(){return"pass"},i.prototype.delegateEvents=function(t){return i.__super__.delegateEvents.call(this,t)},i.prototype.remove=function(){var e,r,o;if(n.has(this,"eventers")){o=this.eventers;for(e in o)t.call(o,e)&&(r=o[e],r.off(null,null,this))}return this.trigger("remove"),i.__super__.remove.call(this)},i.prototype.mget=function(){return this.model.get.apply(this.model,arguments)},i.prototype.mset=function(){return this.model.set.apply(this.model,arguments)},i.prototype.mget_obj=function(t){return this.model.get_obj(t)},i.prototype.render_end=function(){return"pass"},i}(r.View),{View:i}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,r=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t};n("common/has_properties",["underscore","backbone","require","./base","./safebind"],function(n,i,o,s,a){var l,c;return l=function(i){function s(){return this.rpc=t(this.rpc,this),this.get_obj=t(this.get_obj,this),this.resolve_ref=t(this.resolve_ref,this),this.convert_to_ref=t(this.convert_to_ref,this),c=s.__super__.constructor.apply(this,arguments)}return r(s,i),s.prototype.toString=function(){return""+this.type+"("+this.id+")"},s.prototype.destroy=function(t){var r,i,o,a;if(s.__super__.destroy.call(this,t),n.has(this,"eventers")){o=this.eventers,a=[];for(r in o)e.call(o,r)&&(i=o[r],a.push(i.off(null,null,this)));return a}},s.prototype.isNew=function(){return!1},s.prototype.initialize=function(t,e){var r=this;return t||(t={}),e||(e={}),s.__super__.initialize.call(this,t,e),this._base=!1,this.properties={},this.property_cache={},n.has(t,this.idAttribute)||(this.id=n.uniqueId(this.type),this.attributes[this.idAttribute]=this.id),n.defer(function(){return r.inited?void 0:r.dinitialize(t,e)})},s.prototype.dinitialize=function(){return this.inited=!0},s.prototype.set_obj=function(t,r,i){var o,s;n.isObject(t)||null===t?(o=t,i=r):(o={},o[t]=r);for(t in o)e.call(o,t)&&(s=o[t],o[t]=this.convert_to_ref(s));return this.set(o,i)},s.prototype.set=function(t,r,i){var o,a,l,c,u;n.isObject(t)||null===t?(o=t,i=r):(o={},o[t]=r),a=[];for(t in o)e.call(o,t)&&(l=o[t],n.has(this,"properties")&&n.has(this.properties,t)&&this.properties[t].setter&&(this.properties[t].setter.call(this,l),a.push(t)));if(!n.isEmpty(a))for(o=n.clone(o),c=0,u=a.length;u>c;c++)t=a[c],delete o[t];return n.isEmpty(o)?void 0:s.__super__.set.call(this,o,i)},s.prototype.convert_to_ref=function(t){return n.isArray(t)?n.map(t,this.convert_to_ref):t instanceof s?t.ref():void 0},s.prototype.add_dependencies=function(t,e,r){var i,o,s,l,c;for(n.isArray(r)||(r=[r]),o=this.properties[t],o.dependencies=o.dependencies.concat({obj:e,fields:r}),c=[],s=0,l=r.length;l>s;s++)i=r[s],c.push(a(this,e,"change:"+i,o.callbacks.changedep));return c},s.prototype.register_setter=function(t,e){var n;return n=this.properties[t],n.setter=e},s.prototype.register_property=function(t,e,r){var i,o,s,l=this;return n.isUndefined(r)&&(r=!0),n.has(this.properties,t)&&this.remove_property(t),i=function(){return l.trigger("changedep:"+t)},s=function(){var e,n,r;return e=!0,o.use_cache&&(r=l.get_cache(t),l.clear_cache(t),n=l.get(t),e=n!==r),e?(l.trigger("change:"+t,l,l.get(t)),l.trigger("change",l)):void 0},o={getter:e,dependencies:[],use_cache:r,setter:null,callbacks:{changedep:i,propchange:s}},this.properties[t]=o,a(this,this,"changedep:"+t,o.callbacks.propchange),o},s.prototype.remove_property=function(t){var e,n,r,i,o,s,a,l,c,u;for(o=this.properties[t],n=o.dependencies,s=0,l=n.length;l>s;s++)for(e=n[s],i=e.obj,u=e.fields,a=0,c=u.length;c>a;a++)r=u[a],i.off("change:"+r,o.callbacks.changedep,this);return this.off("changedep:"+e),delete this.properties[t],o.use_cache?this.clear_cache(t):void 0},s.prototype.has_cache=function(t){return n.has(this.property_cache,t)},s.prototype.add_cache=function(t,e){return this.property_cache[t]=e},s.prototype.clear_cache=function(t){return delete this.property_cache[t]},s.prototype.get_cache=function(t){return this.property_cache[t]},s.prototype.get=function(t){var e,r,i;return n.has(this.properties,t)?(i=this.properties[t],i.use_cache&&this.has_cache(t)?this.property_cache[t]:(r=i.getter,e=r.apply(this),this.properties[t].use_cache&&this.add_cache(t,e),e)):s.__super__.get.call(this,t)},s.prototype.ref=function(){return{type:this.type,id:this.id}},s.prototype.resolve_ref=function(t){return n.isArray(t)?n.map(t,this.resolve_ref):(t||console.log("ERROR, null reference"),t.type===this.type&&t.id===this.id?this:this.get_base().Collections(t.type).get(t.id))},s.prototype.get_obj=function(t){var e;return e=this.get(t),e?this.resolve_ref(e):void 0},s.prototype.get_base=function(){return this._base||(this._base=o("./base")),this._base},s.prototype.url=function(){var t,e;return t=this.get("doc"),null==t&&console.log("WARN: Unset 'doc' in "+this),e=this.get_base().Config.prefix+"/bokeh/bb/"+t+"/"+this.type+"/",this.isNew()?e:e+this.get("id")+"/"},s.prototype.sync=function(t,e,n){return n.success(e.attributes,null,{})},s.prototype.defaults=function(){return{}},s.prototype.rpc=function(t,e,n){var r,i,o,s,a,l,c;if(s=this.get_base().Config.prefix,i=this.get("doc"),null==i)throw new Error("Unset 'doc' in "+this);return o=this.get("id"),l=this.type,c=""+s+"/bokeh/bb/rpc/"+i+"/"+l+"/"+o+"/"+t+"/",r={args:e,kwargs:n},a=$.ajax({type:"POST",url:c,data:JSON.stringify(r),contentType:"application/json",xhrFields:{withCredentials:!0}})},s}(i.Model)})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("common/has_parent",["underscore","./has_properties"],function(t,n){var r,i;return r=function(n){function r(){return i=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.get_fallback=function(e){return this.get_obj("parent")&&t.indexOf(this.get_obj("parent").parent_properties,e)>=0&&!t.isUndefined(this.get_obj("parent").get(e))?this.get_obj("parent").get(e):t.isFunction(this.display_defaults)?this.display_defaults()[e]:this.display_defaults[e]
            },r.prototype.get=function(e){var n;return n=r.__super__.get.call(this,e),t.isUndefined(n)?"parent"!==e?this.get_fallback(e):void 0:n},r.prototype.display_defaults={},r}(n)})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("range/range1d",["underscore","backbone","common/has_properties"],function(t,n,r){var i,o,s,a;return i=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type="Range1d",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),this.register_property("min",function(){return Math.min(this.get("start"),this.get("end"))},!0),this.add_dependencies("min",this,["start","end"]),this.register_property("max",function(){return Math.max(this.get("start"),this.get("end"))},!0),this.add_dependencies("max",this,["start","end"])},n.prototype.defaults=function(){return{start:0,end:1}},n}(r),o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n.Collection),{Model:i,Collection:new o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("common/view_state",["./has_properties","range/range1d"],function(t,n){var r,i;return r=function(t){function r(){return i=r.__super__.constructor.apply(this,arguments)}return e(r,t),r.prototype.initialize=function(t,e){var i,o;return r.__super__.initialize.call(this,t,e),this.register_property("border_top",function(){return Math.max(this.get("min_border_top"),this.get("requested_border_top"))},!1),this.add_dependencies("border_top",this,["min_border_top","requested_border_top"]),this.register_property("border_bottom",function(){return Math.max(this.get("min_border_bottom"),this.get("requested_border_bottom"))},!1),this.add_dependencies("border_bottom",this,["min_border_bottom","requested_border_bottom"]),this.register_property("border_left",function(){return Math.max(this.get("min_border_left"),this.get("requested_border_left"))},!1),this.add_dependencies("border_left",this,["min_border_left","requested_border_left"]),this.register_property("border_right",function(){return Math.max(this.get("min_border_right"),this.get("requested_border_right"))},!1),this.add_dependencies("border_right",this,["min_border_right","requested_border_right"]),this.register_property("canvas_aspect",function(){return this.get("canvas_height")/this.get("canvas_width")},!0),this.add_dependencies("canvas_aspect",this,["canvas_height","canvas_width"]),this.register_property("outer_aspect",function(){return this.get("outer_height")/this.get("outer_width")},!0),this.add_dependencies("outer_aspect",this,["outer_height","outer_width"]),this.register_property("inner_width",function(){return this.get("outer_width")-this.get("border_left")-this.get("border_right")},!0),this.add_dependencies("inner_width",this,["outer_width","border_left","border_right"]),this.register_property("inner_height",function(){return this.get("outer_height")-this.get("border_top")-this.get("border_bottom")},!0),this.add_dependencies("inner_height",this,["outer_height","border_top","border_bottom"]),this.register_property("inner_aspect",function(){return this.get("inner_height")/this.get("inner_width")},!0),this.add_dependencies("inner_aspect",this,["inner_height","inner_width"]),i=new n.Model({start:this.get("border_left"),end:this.get("border_left")+this.get("inner_width")}),this.register_property("inner_range_horizontal",function(){return i.set("start",this.get("border_left")),i.set("end",this.get("border_left")+this.get("inner_width")),i},!0),this.add_dependencies("inner_range_horizontal",this,["border_left","inner_width"]),o=new n.Model({start:this.get("border_bottom"),end:this.get("border_bottom")+this.get("inner_height")}),this.register_property("inner_range_vertical",function(){return o.set("start",this.get("border_bottom")),o.set("end",this.get("border_bottom")+this.get("inner_height")),o},!0),this.add_dependencies("inner_range_vertical",this,["border_bottom","inner_height"])},r.prototype.vx_to_sx=function(t){return t},r.prototype.vy_to_sy=function(t){return this.get("canvas_height")-t},r.prototype.v_vx_to_sx=function(t){var e,n,r,i;for(e=r=0,i=t.length;i>r;e=++r)n=t[e],t[e]=n;return t},r.prototype.v_vy_to_sy=function(t){var e,n,r,i,o;for(e=this.get("canvas_height"),n=i=0,o=t.length;o>i;n=++i)r=t[n],t[n]=e-r;return t},r.prototype.sx_to_vx=function(t){return t},r.prototype.sy_to_vy=function(t){return this.get("canvas_height")-t},r.prototype.v_sx_to_vx=function(t){var e,n,r,i;for(e=r=0,i=t.length;i>r;e=++r)n=t[e],t[e]=n;return t},r.prototype.v_sy_to_vy=function(t){var e,n,r,i,o;for(e=this.get("canvas_height"),n=i=0,o=t.length;o>i;n=++i)r=t[n],t[n]=e-r;return t},r}(t)})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("mapper/1d/linear_mapper",["backbone","common/has_properties"],function(t,n){var r,i,o,s;return r=function(t){function n(){return o=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),this.register_property("mapper_state",this._mapper_state,!0),this.add_dependencies("mapper_state",this,["source_range","target_range"]),this.add_dependencies("mapper_state",this.get("source_range"),["start","end"]),this.add_dependencies("mapper_state",this.get("target_range"),["start","end"])},n.prototype.map_to_target=function(t){var e,n,r;return r=this.get("mapper_state"),n=r[0],e=r[1],n*t+e},n.prototype.v_map_to_target=function(t){var e,n,r,i,o,s,a,l;for(l=this.get("mapper_state"),i=l[0],n=l[1],r=new Float64Array(t.length),e=s=0,a=t.length;a>s;e=++s)o=t[e],r[e]=i*o+n;return r},n.prototype.map_from_target=function(t){var e,n,r;return r=this.get("mapper_state"),n=r[0],e=r[1],(t-e)/n},n.prototype.v_map_from_target=function(t){var e,n,r,i,o,s,a,l;for(l=this.get("mapper_state"),i=l[0],n=l[1],r=new Float64Array(t.length),e=s=0,a=t.length;a>s;e=++s)o=t[e],r[e]=(o-n)/i;return r},n.prototype._mapper_state=function(){var t,e,n,r,i,o;return r=this.get("source_range").get("start"),n=this.get("source_range").get("end"),o=this.get("target_range").get("start"),i=this.get("target_range").get("end"),e=(i-o)/(n-r),t=-(e*r)+o,[e,t]},n}(n),i=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(t.Collection),{Model:r,Collection:new i}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("mapper/2d/grid_mapper",["backbone","common/has_properties"],function(t,n){var r,i,o,s;return r=function(t){function n(){return o=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.map_to_target=function(t,e){var n,r;return n=this.get("domain_mapper").map_to_target(t),r=this.get("codomain_mapper").map_to_target(e),[n,r]},n.prototype.v_map_to_target=function(t,e){var n,r;return n=this.get("domain_mapper").v_map_to_target(t),r=this.get("codomain_mapper").v_map_to_target(e),[n,r]},n.prototype.map_from_target=function(t,e){var n,r;return n=this.get("domain_mapper").map_from_target(t),r=this.get("codomain_mapper").map_from_target(e),[n,r]},n.prototype.v_map_from_target=function(t,e){var n,r;return n=this.get("domain_mapper").v_map_from_target(t),r=this.get("codomain_mapper").v_map_from_target(e),[n,r]},n}(n),i=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(t.Collection),{Model:r,Collection:new i}})}.call(this),function(){n("common/svg_colors",[],function(){var t;return t={indianred:"#CD5C5C",lightcoral:"#F08080",salmon:"#FA8072",darksalmon:"#E9967A",lightsalmon:"#FFA07A",crimson:"#DC143C",red:"#FF0000",firebrick:"#B22222",darkred:"#8B0000",pink:"#FFC0CB",lightpink:"#FFB6C1",hotpink:"#FF69B4",deeppink:"#FF1493",mediumvioletred:"#C71585",palevioletred:"#DB7093",lightsalmon:"#FFA07A",coral:"#FF7F50",tomato:"#FF6347",orangered:"#FF4500",darkorange:"#FF8C00",orange:"#FFA500",gold:"#FFD700",yellow:"#FFFF00",lightyellow:"#FFFFE0",lemonchiffon:"#FFFACD",lightgoldenrodyellow:"#FAFAD2",papayawhip:"#FFEFD5",moccasin:"#FFE4B5",peachpuff:"#FFDAB9",palegoldenrod:"#EEE8AA",khaki:"#F0E68C",darkkhaki:"#BDB76B",lavender:"#E6E6FA",thistle:"#D8BFD8",plum:"#DDA0DD",violet:"#EE82EE",orchid:"#DA70D6",fuchsia:"#FF00FF",magenta:"#FF00FF",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",blueviolet:"#8A2BE2",darkviolet:"#9400D3",darkorchid:"#9932CC",darkmagenta:"#8B008B",purple:"#800080",indigo:"#4B0082",slateblue:"#6A5ACD",darkslateblue:"#483D8B",mediumslateblue:"#7B68EE",greenyellow:"#ADFF2F",chartreuse:"#7FFF00",lawngreen:"#7CFC00",lime:"#00FF00",limegreen:"#32CD32",palegreen:"#98FB98",lightgreen:"#90EE90",mediumspringgreen:"#00FA9A",springgreen:"#00FF7F",mediumseagreen:"#3CB371",seagreen:"#2E8B57",forestgreen:"#228B22",green:"#008000",darkgreen:"#006400",yellowgreen:"#9ACD32",olivedrab:"#6B8E23",olive:"#808000",darkolivegreen:"#556B2F",mediumaquamarine:"#66CDAA",darkseagreen:"#8FBC8F",lightseagreen:"#20B2AA",darkcyan:"#008B8B",teal:"#008080",aqua:"#00FFFF",cyan:"#00FFFF",lightcyan:"#E0FFFF",paleturquoise:"#AFEEEE",aquamarine:"#7FFFD4",turquoise:"#40E0D0",mediumturquoise:"#48D1CC",darkturquoise:"#00CED1",cadetblue:"#5F9EA0",steelblue:"#4682B4",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",lightblue:"#ADD8E6",skyblue:"#87CEEB",lightskyblue:"#87CEFA",deepskyblue:"#00BFFF",dodgerblue:"#1E90FF",cornflowerblue:"#6495ED",mediumslateblue:"#7B68EE",royalblue:"#4169E1",blue:"#0000FF",mediumblue:"#0000CD",darkblue:"#00008B",navy:"#000080",midnightblue:"#191970",cornsilk:"#FFF8DC",blanchedalmond:"#FFEBCD",bisque:"#FFE4C4",navajowhite:"#FFDEAD",wheat:"#F5DEB3",burlywood:"#DEB887",tan:"#D2B48C",rosybrown:"#BC8F8F",sandybrown:"#F4A460",goldenrod:"#DAA520",darkgoldenrod:"#B8860B",peru:"#CD853F",chocolate:"#D2691E",saddlebrown:"#8B4513",sienna:"#A0522D",brown:"#A52A2A",maroon:"#800000",white:"#FFFFFF",snow:"#FFFAFA",honeydew:"#F0FFF0",mintcream:"#F5FFFA",azure:"#F0FFFF",aliceblue:"#F0F8FF",ghostwhite:"#F8F8FF",whitesmoke:"#F5F5F5",seashell:"#FFF5EE",beige:"#F5F5DC",oldlace:"#FDF5E6",floralwhite:"#FFFAF0",ivory:"#FFFFF0",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lavenderblush:"#FFF0F5",mistyrose:"#FFE4E1",gainsboro:"#DCDCDC",lightgrey:"#D3D3D3",silver:"#C0C0C0",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",gray:"#808080",grey:"#808080",dimgray:"#696969",dimgrey:"#696969",lightslategray:"#778899",lightslategrey:"#778899",slategray:"#708090",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",black:"#000000"}})}.call(this),function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1},e={}.hasOwnProperty,r=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t};n("renderer/properties",["underscore","common/svg_colors"],function(e,n){var i,o,s,a,l;return a=function(){function r(){}return r.prototype.source_v_select=function(t,e){var n,r,i,o,s,a,l;if(r=this,!(t in r))return console.log("requested vector selection of unknown property '"+t+"' on objects"),function(){var t,n,r,o;for(r=e.get_length(),o=[],t=0,n=r.length;n>t;t++)i=r[t],o.push(null);return o}();if(o=r[t],null!=o.field&&o.field in e.get("data"))return e.getcolumn(o.field);if(null!=r[t].value)n=r[t].value;else{if(t in e.get("data"))return e.getcolumn(t);null!=r[t]["default"]&&(n=r[t]["default"])}for(s=[],i=a=0,l=e.get_length();l>=0?l>a:a>l;i=l>=0?++a:--a)s.push(n);return s},r.prototype.string=function(t,n,r){var i,o;return this[r]={},i=t.mget(r),null==i||(e.isString(i)?this[r]["default"]=i:console.log("string property '"+r+"' given invalid default value: "+i)),null!=n&&r in n?(o=n[r],e.isString(o)?this[r].value=o:e.isObject(o)?this[r]=e.extend(this[r],o):console.log("string property '"+r+"' given invalid glyph value: "+o)):void 0},r.prototype.number=function(t,n,r){var i,o,s,a;return this[r]={},i=t.mget(r),null==i||(e.isNumber(i)?this[r]["default"]=i:console.log("number property '"+r+"' given invalid default value: "+i)),s=null!=(a=t.mget(r+"_units"))?a:"data",null!=n&&r+"_units"in n&&(s=n[r+"_units"]),this[r].units=s,null!=n&&r in n?(o=n[r],e.isString(o)?this[r].field=o:e.isNumber(o)?this[r].value=o:e.isObject(o)?this[r]=e.extend(this[r],o):console.log("number property '"+r+"' given invalid glyph value: "+o)):void 0},r.prototype.color=function(t,r,i){var o,s;return this[i]={},o=t.mget(i),e.isUndefined(o)?this[i]["default"]=null:e.isString(o)&&(null!=n[o]||"#"===o.substring(0,1))||e.isNull(o)?this[i]["default"]=o:console.log("color property '"+i+"' given invalid default value: "+o),null!=r&&i in r?(s=r[i],e.isNull(s)?this[i].value=null:e.isString(s)?null!=n[s]||"#"===s.substring(0,1)?this[i].value=s:this[i].field=s:e.isObject(s)?this[i]=e.extend(this[i],s):console.log("color property '"+i+"' given invalid glyph value: "+s)):void 0},r.prototype.array=function(t,n,r){var i,o,s,a;return this[r]={},i=t.mget(r),null==i||(e.isArray(i)?this[r]["default"]=i:console.log("array property '"+r+"' given invalid default value: "+i)),s=null!=(a=t.mget(r+"_units"))?a:"data",null!=n&&r+"_units"in n&&(s=n[r+"_units"]),this[r].units=s,null!=n&&r in n?(o=n[r],e.isString(o)?this[r].field=o:e.isArray(o)?this[r].value=o:e.isObject(o)?this[r]=e.extend(this[r],o):console.log("array property '"+r+"' given invalid glyph value: "+o)):void 0},r.prototype["enum"]=function(n,r,i,o){var s,a,l;return this[i]={},l=o.split(" "),s=n.mget(i),e.isNull(s)||(e.isString(s)&&t.call(l,s)>=0?this[i]={"default":s}:(console.log("enum property '"+i+"' given invalid default value: "+s),console.log("    acceptable values:"+l))),null!=r&&i in r?(a=r[i],e.isString(a)?t.call(l,a)>=0?this[i].value=a:this[i].field=a:e.isObject(a)?this[i]=e.extend(this[i],a):(console.log("enum property '"+i+"' given invalid glyph value: "+a),console.log("    acceptable values:"+l))):void 0},r.prototype.setattr=function(t,e,n,r){var i,o;return i=null,r.indexOf(":")>-1&&(o=r.split(":"),r=o[0],i=o[1]),"string"===r?this.string(t,e,n):"number"===r?this.number(t,e,n):"color"===r?this.color(t,e,n):"array"===r?this.array(t,e,n):"enum"===r&&i?this["enum"](t,e,n,i):console.log("Unknown type '"+r+"' for glyph property: "+n)},r.prototype.select=function(t,e){return t in this?null!=this[t].field&&this[t].field in e?e[this[t].field]:null!=this[t].value?this[t].value:e.get&&e.get(t)?e.get(t):e.mget&&e.mget(t)?e.mget(t):null!=e[t]?e[t]:null!=this[t]["default"]?this[t]["default"]:console.log("selection for attribute '"+t+"' failed on object: "+e):(console.log("requested selection of unknown property '"+t+"' on object: "+e),void 0)},r.prototype.v_select=function(t,e){var n,r,i,o,s;if(!(t in this))return console.log("requested vector selection of unknown property '"+t+"' on objects"),void 0;for(i=null!=this[t].typed?new Float64Array(e.length):new Array(e.length),n=o=0,s=e.length;s>=0?s>o:o>s;n=s>=0?++o:--o)if(r=e[n],null!=this[t].field&&this[t].field in r)i[n]=r[this[t].field];else if(null!=this[t].value)i[n]=this[t].value;else if(null!=r[t])i[n]=r[t];else{if(null==this[t]["default"])return console.log("vector selection for attribute '"+t+"' failed on object: "+r),void 0;i[n]=this[t]["default"]}return i},r}(),s=function(t){function n(t,n,r){null==r&&(r=""),this.line_color_name=""+r+"line_color",this.line_width_name=""+r+"line_width",this.line_alpha_name=""+r+"line_alpha",this.line_join_name=""+r+"line_join",this.line_cap_name=""+r+"line_cap",this.line_dash_name=""+r+"line_dash",this.line_dash_offset_name=""+r+"line_dash_offset",this.color(t,n,this.line_color_name),this.number(t,n,this.line_width_name),this.number(t,n,this.line_alpha_name),this["enum"](t,n,this.line_join_name,"miter round bevel"),this["enum"](t,n,this.line_cap_name,"butt round square"),this.array(t,n,this.line_dash_name),this.number(t,n,this.line_dash_offset_name),this.do_stroke=!0,e.isUndefined(this[this.line_color_name].value)?e.isNull(this[this.line_color_name]["default"])&&(this.do_stroke=!1):e.isNull(this[this.line_color_name].value)&&(this.do_stroke=!1)}return r(n,t),n.prototype.set=function(t,e){return t.strokeStyle=this.select(this.line_color_name,e),t.globalAlpha=this.select(this.line_alpha_name,e),t.lineWidth=this.select(this.line_width_name,e),t.lineJoin=this.select(this.line_join_name,e),t.lineCap=this.select(this.line_cap_name,e),t.setLineDash(this.select(this.line_dash_name,e)),t.setLineDashOffset(this.select(this.line_dash_offset_name,e))},n.prototype.set_prop_cache=function(t){return this.cache={},this.cache.strokeStyle=this.source_v_select(this.line_color_name,t),this.cache.globalAlpha=this.source_v_select(this.line_alpha_name,t),this.cache.lineWidth=this.source_v_select(this.line_width_name,t),this.cache.lineJoin=this.source_v_select(this.line_join_name,t),this.cache.lineCap=this.source_v_select(this.line_cap_name,t),this.cache.setLineDash=this.source_v_select(this.line_dash_name,t),this.cache.setLineDashOffset=this.source_v_select(this.line_dash_offset_name,t)},n.prototype.clear_prop_cache=function(){return this.cache={}},n.prototype.set_vectorize=function(t,e){var n;return n=!1,null!=this.cache.strokeStyle[e]&&t.strokeStyle!==this.cache.strokeStyle[e]&&(t.strokeStyle=this.cache.strokeStyle[e],n=!0),null!=this.cache.globalAlpha[e]&&t.globalAlpha!==this.cache.globalAlpha[e]&&(t.globalAlpha=this.cache.globalAlpha[e],n=!0),null!=this.cache.lineWidth[e]&&t.lineWidth!==this.cache.lineWidth[e]&&(t.lineWidth=this.cache.lineWidth[e],n=!0),null!=this.cache.lineJoin[e]&&t.lineJoin!==this.cache.lineJoin[e]&&(t.lineJoin=this.cache.lineJoin[e],n=!0),null!=this.cache.lineCap[e]&&t.lineCap!==this.cache.lineCap[e]&&(t.lineCap=this.cache.lineCap[e],n=!0),null!=this.cache.setLineDash[e]&&t.getLineDash()!==this.cache.setLineDash[e]&&(t.setLineDash(this.cache.setLineDash[e]),n=!0),null!=this.cache.setLineDashOffset[e]&&t.getLineDashOffset()!==this.cache.setLineDashOffset[e]&&(t.setLineDashOffset(this.cache.setLineDashOffset[e]),n=!0),n},n}(a),i=function(t){function n(t,n,r){null==r&&(r=""),this.fill_color_name=""+r+"fill_color",this.fill_alpha_name=""+r+"fill_alpha",this.color(t,n,this.fill_color_name),this.number(t,n,this.fill_alpha_name),this.do_fill=!0,e.isUndefined(this[this.fill_color_name].value)?e.isNull(this[this.fill_color_name]["default"])&&(this.do_fill=!1):e.isNull(this[this.fill_color_name].value)&&(this.do_fill=!1)}return r(n,t),n.prototype.set=function(t,e){return t.fillStyle=this.select(this.fill_color_name,e),t.globalAlpha=this.select(this.fill_alpha_name,e)},n.prototype.set_prop_cache=function(t){return this.cache={},this.cache.fillStyle=this.source_v_select(this.fill_color_name,t),this.cache.globalAlpha=this.source_v_select(this.fill_alpha_name,t)},n.prototype.set_vectorize=function(t,e){var n;return n=!1,t.fillStyle!==this.cache.fillStyle[e]&&(t.fillStyle=this.cache.fillStyle[e],n=!0),t.globalAlpha!==this.cache.globalAlpha[e]&&(t.globalAlpha=this.cache.globalAlpha[e],n=!0),n},n}(a),l=function(t){function e(t,e,n){null==n&&(n=""),this.text_font_name=""+n+"text_font",this.text_font_size_name=""+n+"text_font_size",this.text_font_style_name=""+n+"text_font_style",this.text_color_name=""+n+"text_color",this.text_alpha_name=""+n+"text_alpha",this.text_align_name=""+n+"text_align",this.text_baseline_name=""+n+"text_baseline",this.string(t,e,this.text_font_name),this.string(t,e,this.text_font_size_name),this["enum"](t,e,this.text_font_style_name,"normal italic bold"),this.color(t,e,this.text_color_name),this.number(t,e,this.text_alpha_name),this["enum"](t,e,this.text_align_name,"left right center"),this["enum"](t,e,this.text_baseline_name,"top middle bottom alphabetic hanging")}return r(e,t),e.prototype.font=function(t,e){var n,r;return null==e&&(e=this.select(this.text_font_size_name,t)),n=this.select(this.text_font_name,t),r=this.select(this.text_font_style_name,t),n=r+" "+e+" "+n},e.prototype.set=function(t,e){return t.font=this.font(e),t.fillStyle=this.select(this.text_color_name,e),t.globalAlpha=this.select(this.text_alpha_name,e),t.textAlign=this.select(this.text_align_name,e),t.textBaseline=this.select(this.text_baseline_name,e)},e.prototype.set_prop_cache=function(t){var e,n,r,i;return this.cache={},n=this.source_v_select(this.text_font_size_name,t),e=this.source_v_select(this.text_font_name,t),r=this.source_v_select(this.text_font_style_name,t),this.cache.font=function(){var t,o,s;for(s=[],i=t=0,o=e.length;o>=0?o>t:t>o;i=o>=0?++t:--t)s.push(""+r[i]+" "+n[i]+" "+e[i]);return s}(),this.cache.fillStyle=this.source_v_select(this.text_color_name,t),this.cache.globalAlpha=this.source_v_select(this.text_alpha_name,t),this.cache.textAlign=this.source_v_select(this.text_align_name,t),this.cache.textBaseline=this.source_v_select(this.text_baseline_name,t)},e.prototype.clear_prop_cache=function(){return this.cache={}},e.prototype.set_vectorize=function(t,e){var n;return n=!1,t.font!==this.cache.font[e]&&(t.font=this.cache.font[e],n=!0),t.fillStyle!==this.cache.fillStyle[e]&&(t.fillStyle=this.cache.fillStyle[e],n=!0),t.globalAlpha!==this.cache.globalAlpha[e]&&(t.globalAlpha=this.cache.globalAlpha[e],n=!0),t.textAlign!==this.cache.textAlign[e]&&(t.textAlign=this.cache.textAlign[e],n=!0),t.textBaseline!==this.cache.textBaseline[e]&&(t.textBaseline=this.cache.textBaseline[e],n=!0),n},e}(a),o=function(t){function e(t,e,n,r){var i,o,s,a,l,c;for(a=0,l=n.length;l>a;a++)i=n[a],o="number",i.indexOf(":")>-1&&(c=i.split(":"),i=c[0],o=c[1]),this.setattr(t,e,i,o);for(s in r)this[s]=r[s];this.fast_path=!1,"fast_path"in e&&(this.fast_path=e.fast_path)}return r(e,t),e}(a),{glyph_properties:o,fill_properties:i,line_properties:s,text_properties:l}})}.call(this),function(){n("tool/active_tool_manager",[],function(){var t;return t=function(){" This makes sure that only one tool is active at a time ";function t(t){this.event_sink=t,this.event_sink.active=null}return t.prototype.bind_bokeh_events=function(){var t=this;return this.event_sink.on("clear_active_tool",function(){return t.event_sink.trigger(""+t.event_sink.active+":deactivated"),t.event_sink.active=null}),this.event_sink.on("active_tool",function(e){return e!==t.event_sink.active?(t.event_sink.trigger(""+e+":activated"),t.event_sink.trigger(""+t.event_sink.active+":deactivated"),t.event_sink.active=e):void 0}),this.event_sink.on("try_active_tool",function(e){return null==t.event_sink.active?(t.event_sink.trigger(""+e+":activated"),t.event_sink.trigger(""+t.event_sink.active+":deactivated"),t.event_sink.active=e):void 0})},t}()})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,r=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t};n("common/gmap_plot",["underscore","jquery","backbone","./build_views","./safebind","./bulk_save","./continuum_view","./has_parent","./view_state","mapper/1d/linear_mapper","mapper/2d/grid_mapper","renderer/properties","tool/active_tool_manager"],function(e,n,i,o,s,a,l,c,u,h,p,d,_){var f,g,m,v,y,b,w;return v=["image","underlay","glyph","overlay","annotation","tool"],g=function(l){function c(){return this.bounds_change=t(this.bounds_change,this),this._mousemove=t(this._mousemove,this),this._mousedown=t(this._mousedown,this),y=c.__super__.constructor.apply(this,arguments)}return r(c,l),c.prototype.events={"mousemove .bokeh_canvas_wrapper":"_mousemove","mousedown .bokeh_canvas_wrapper":"_mousedown"},c.prototype.className="bokeh",c.prototype.view_options=function(){return e.extend({plot_model:this.model,plot_view:this},this.options)},c.prototype._mousedown=function(t){var e,n,r,i,o;for(i=this.mousedownCallbacks,o=[],n=0,r=i.length;r>n;n++)e=i[n],o.push(e(t,t.layerX,t.layerY));return o},c.prototype._mousemove=function(t){var e,n,r,i,o;for(i=this.moveCallbacks,o=[],n=0,r=i.length;r>n;n++)e=i[n],o.push(e(t,t.layerX,t.layerY));return o},c.prototype.pause=function(){return this.is_paused=!0},c.prototype.unpause=function(t){return null==t&&(t=!1),this.is_paused=!1,t?this.request_render_canvas(!0):this.request_render()},c.prototype.request_render=function(){this.is_paused||this.throttled_render()},c.prototype.request_render_canvas=function(t){this.is_paused||this.throttled_render_canvas(t)},c.prototype.initialize=function(t){var n,r,o,s,a,l,f,g,m,y,b,w,x,k,j,C,T,M,N,S,A,E,O,P;for(c.__super__.initialize.call(this,e.defaults(t,this.default_options)),this.throttled_render=e.throttle(this.render,100),this.throttled_render_canvas=e.throttle(this.render_canvas,100),this.outline_props=new d.line_properties(this,{},"title_"),this.title_props=new d.text_properties(this,{},"title_"),this.view_state=new u({canvas_width:null!=(f=t.canvas_width)?f:this.mget("canvas_width"),canvas_height:null!=(T=t.canvas_height)?T:this.mget("canvas_height"),x_offset:null!=(M=t.x_offset)?M:this.mget("x_offset"),y_offset:null!=(N=t.y_offset)?N:this.mget("y_offset"),outer_width:null!=(S=t.outer_width)?S:this.mget("outer_width"),outer_height:null!=(A=t.outer_height)?A:this.mget("outer_height"),min_border_top:null!=(E=null!=(O=t.min_border_top)?O:this.mget("min_border_top"))?E:this.mget("min_border"),min_border_bottom:null!=(P=null!=(g=t.min_border_bottom)?g:this.mget("min_border_bottom"))?P:this.mget("min_border"),min_border_left:null!=(m=null!=(y=t.min_border_left)?y:this.mget("min_border_left"))?m:this.mget("min_border"),min_border_right:null!=(b=null!=(w=t.min_border_right)?w:this.mget("min_border_right"))?b:this.mget("min_border"),requested_border_top:0,requested_border_bottom:0,requested_border_left:0,requested_border_right:0}),this.hidpi=null!=(x=t.hidpi)?x:this.mget("hidpi"),this.x_range=null!=(k=t.x_range)?k:this.mget_obj("x_range"),this.y_range=null!=(j=t.y_range)?j:this.mget_obj("y_range"),this.xmapper=new h.Model({source_range:this.x_range,target_range:this.view_state.get("inner_range_horizontal")}),this.ymapper=new h.Model({source_range:this.y_range,target_range:this.view_state.get("inner_range_vertical")}),this.mapper=new p.Model({domain_mapper:this.xmapper,codomain_mapper:this.ymapper}),C=this.mget_obj("tools"),o=0,a=C.length;a>o;o++)r=C[o],("PanTool"===r.type||"WheelZoomTool"===r.type)&&(r.set_obj("dataranges",[this.x_range,this.y_range]),r.set("dimensions",["width","height"]));for(this.requested_padding={top:0,bottom:0,left:0,right:0},this.old_mapper_state={x:null,y:null},this.am_rendering=!1,this.renderers={},this.tools={},this.zoom_count=null,this.eventSink=e.extend({},i.Events),this.moveCallbacks=[],this.mousedownCallbacks=[],this.keydownCallbacks=[],this.render_init(),this.render_canvas(!1),this.atm=new _(this.eventSink),this.levels={},s=0,l=v.length;l>s;s++)n=v[s],this.levels[n]={};return this.build_levels(),this.request_render(),this.atm.bind_bokeh_events(),this.bind_bokeh_events(),this},c.prototype.map_to_screen=function(t,e,n){var r,i,o;return"screen"===e?(r=t.slice(0),i=n.slice(0)):(o=this.mapper.v_map_to_target(t,n),r=o[0],i=o[1]),r=this.view_state.v_vx_to_sx(r),i=this.view_state.v_vy_to_sy(i),[r,i]},c.prototype.map_from_screen=function(t,e,n){var r,i,o;return t=this.view_state.v_sx_to_vx(t.slice(0)),e=this.view_state.v_sy_to_vy(e.slice(0)),"screen"===n?(r=t,i=e):(o=this.mapper.v_map_from_target(t,e),r=o[0],i=o[1]),[r,i]},c.prototype.update_range=function(t){var e,n,r,i,o;return null==t&&(t=this.initial_range_info),this.pause(),null!=t.sdx?this.map.panBy(t.sdx,t.sdy):(o=Math.min(t.xr.start,t.xr.end),r=Math.max(t.xr.start,t.xr.end),i=Math.min(t.yr.start,t.yr.end),n=Math.max(t.yr.start,t.yr.end),e=new google.maps.LatLng((n+i)/2,(r+o)/2),null==t.factor?(this.map.setCenter(e),this.map.setZoom(this.initial_zoom)):t.factor>0?(this.zoom_count+=1,10===this.zoom_count&&(this.map.setZoom(this.map.getZoom()+1),this.zoom_count=0)):(this.zoom_count-=1,-10===this.zoom_count&&(this.map.setCenter(e),this.map.setZoom(this.map.getZoom()-1),this.map.setCenter(e),this.zoom_count=0))),this.unpause()},c.prototype.build_tools=function(){return o(this.tools,this.mget_obj("tools"),this.view_options())},c.prototype.build_views=function(){return o(this.renderers,this.mget_obj("renderers"),this.view_options())},c.prototype.build_levels=function(){var t,e,n,r,i,o,s,a,l;for(i=this.build_views(),n=this.build_tools(),o=0,a=i.length;a>o;o++)r=i[o],t=r.mget("level"),this.levels[t][r.model.id]=r,r.bind_bokeh_events();for(s=0,l=n.length;l>s;s++)e=n[s],t=e.mget("level"),this.levels[t][e.model.id]=e,e.bind_bokeh_events();return this},c.prototype.bind_bokeh_events=function(){var t=this;return s(this,this.view_state,"change",function(){return t.request_render_canvas(),t.request_render()}),s(this,this.x_range,"change",this.request_render),s(this,this.y_range,"change",this.request_render),s(this,this.model,"change:renderers",this.build_levels),s(this,this.model,"change:tool",this.build_levels),s(this,this.model,"change",this.request_render),s(this,this.model,"destroy",function(){return t.remove()})},c.prototype.render_init=function(){return this.$el.append(n("<div class='button_bar btn-group'/>\n<div class='plotarea'>\n<div class='bokeh_canvas_wrapper'>\n  <div class=\"bokeh_gmap\"></div>\n  <canvas class='bokeh_canvas'></canvas>\n</div>\n</div>")),this.button_bar=this.$el.find(".button_bar"),this.canvas_wrapper=this.$el.find(".bokeh_canvas_wrapper"),this.canvas=this.$el.find("canvas.bokeh_canvas"),this.gmap_div=this.$el.find(".bokeh_gmap")},c.prototype.render_canvas=function(t){var n,r,i,o,s,a,l,c,u,h,p=this;return null==t&&(t=!0),this.ctx=this.canvas[0].getContext("2d"),this.hidpi?(i=window.devicePixelRatio||1,n=this.ctx.webkitBackingStorePixelRatio||this.ctx.mozBackingStorePixelRatio||this.ctx.msBackingStorePixelRatio||this.ctx.oBackingStorePixelRatio||this.ctx.backingStorePixelRatio||1,u=i/n):u=1,l=this.view_state.get("outer_height"),c=this.view_state.get("outer_width"),this.canvas.width=c*u,this.canvas.height=l*u,this.button_bar.attr("style","width:"+c+"px;"),this.canvas_wrapper.attr("style","width:"+c+"px; height:"+l+"px"),this.canvas.attr("style","width:"+c+"px;"),this.canvas.attr("style","height:"+l+"px;"),this.canvas.attr("width",c*u).attr("height",l*u),this.$el.attr("width",c).attr("height",l),this.ctx.scale(u,u),this.ctx.translate(.5,.5),s=this.view_state.get("inner_width"),o=this.view_state.get("inner_height"),h=this.view_state.get("border_top"),a=this.view_state.get("border_left"),this.gmap_div.attr("style","top: "+h+"px; left: "+a+"px; position: absolute"),this.gmap_div.attr("style","width:"+s+"px;"),this.gmap_div.attr("style","height:"+o+"px;"),this.gmap_div.width(""+s+"px").height(""+o+"px"),this.initial_zoom=this.mget("map_options").zoom,r=function(){var t,e;return e=p.mget("map_options"),t={center:new google.maps.LatLng(e.lat,e.lng),zoom:e.zoom,disableDefaultUI:!0,mapTypeId:google.maps.MapTypeId.SATELLITE},p.map=new google.maps.Map(p.gmap_div[0],t),google.maps.event.addListener(p.map,"bounds_changed",p.bounds_change)},e.defer(r),t?this.render():void 0},c.prototype.bounds_change=function(){var t,e,n;return t=this.map.getBounds(),e=t.getNorthEast(),n=t.getSouthWest(),this.x_range.set({start:n.lng(),end:e.lng(),silent:!0}),this.y_range.set({start:n.lat(),end:e.lat()}),null==this.initial_range_info?this.initial_range_info={xr:{start:this.x_range.get("start"),end:this.x_range.get("end")},yr:{start:this.y_range.get("start"),end:this.y_range.get("end")}}:void 0},c.prototype.save_png=function(){var t;return this.render(),t=this.canvas[0].toDataURL(),this.model.set("png",this.canvas[0].toDataURL()),a([this.model])
            },c.prototype.render=function(){var t,e,n,r,i,o,s,a,l,c,u,h,p,d,_,f,g,m,v,y,b,w,x,k,j,C,T,M,N,S;for(this.requested_padding={top:0,bottom:0,left:0,right:0},T=["image","underlay","glyph","overlay","annotation","tool"],b=0,k=T.length;k>b;b++){s=T[b],u=this.levels[s];for(i in u)if(m=u[i],null!=m.padding_request){c=m.padding_request();for(i in c)m=c[i],this.requested_padding[i]+=m}}f=this.mget("title"),f&&(this.title_props.set(this.ctx,{}),_=this.ctx.measureText(this.mget("title")).ascent,this.requested_padding.top+=_+this.mget("title_standoff")),d=this.mget("border_symmetry")||"",(d.indexOf("h")>=0||d.indexOf("H")>=0)&&(e=Math.max(this.requested_padding.left,this.requested_padding.right),this.requested_padding.left=e,this.requested_padding.right=e),(d.indexOf("v")>=0||d.indexOf("V")>=0)&&(e=Math.max(this.requested_padding.top,this.requested_padding.bottom),this.requested_padding.top=e,this.requested_padding.bottom=e),this.is_paused=!0,M=this.requested_padding;for(i in M)m=M[i],this.view_state.set("requested_border_"+i,m);for(this.is_paused=!1,a=this.view_state.get("outer_height"),l=this.view_state.get("outer_width"),r=this.view_state.get("inner_width"),n=this.view_state.get("inner_height"),g=this.view_state.get("border_top"),o=this.view_state.get("border_left"),this.gmap_div.attr("style","top: "+g+"px; left: "+o+"px;"),this.gmap_div.width(""+r+"px").height(""+n+"px"),this.ctx.clearRect(0,0,l,a),this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(0,a),this.ctx.lineTo(l,a),this.ctx.lineTo(l,0),this.ctx.lineTo(0,0),this.ctx.moveTo(o,g),this.ctx.lineTo(o+r,g),this.ctx.lineTo(o+r,g+n),this.ctx.lineTo(o,g+n),this.ctx.lineTo(o,g),this.ctx.closePath(),this.ctx.fillStyle=this.mget("border_fill"),this.ctx.fill(),this.outline_props.do_stroke&&(this.outline_props.set(this.ctx,{}),this.ctx.strokeRect(this.view_state.get("border_left"),this.view_state.get("border_top"),this.view_state.get("inner_width"),this.view_state.get("inner_height"))),t=!1,v=this.xmapper.get("mapper_state")[0],y=this.xmapper.get("mapper_state")[0],(Math.abs(this.old_mapper_state.x-v)>1e-8||Math.abs(this.old_mapper_state.y-y)>1e-8)&&(this.old_mapper_state.x=v,this.old_mapper_state.y=y,t=!0),this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(this.view_state.get("border_left"),this.view_state.get("border_top"),this.view_state.get("inner_width"),this.view_state.get("inner_height")),this.ctx.clip(),this.ctx.beginPath(),N=["image","underlay","glyph"],w=0,j=N.length;j>w;w++){s=N[w],u=this.levels[s];for(i in u)m=u[i],m.render(t)}for(this.ctx.restore(),S=["overlay","annotation","tool"],x=0,C=S.length;C>x;x++){s=S[x],u=this.levels[s];for(i in u)m=u[i],m.render(t)}return f?(h=this.view_state.get("outer_width")/2,p=_,this.title_props.set(this.ctx,{}),this.ctx.fillText(f,h,p)):void 0},c}(l.View),f=function(t){function e(){return b=e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="GMapPlot",e.prototype.default_view=g,e.prototype.add_renderers=function(t){var e;return e=this.get("renderers"),e=e.concat(t),this.set("renderers",e)},e.prototype.parent_properties=["border_fill","canvas_width","canvas_height","outer_width","outer_height","min_border","min_border_top","min_border_bottom","min_border_left","min_border_right"],e.prototype.defaults=function(){return{data_sources:{},renderers:[],tools:[],title:"GMapPlot"}},e.prototype.display_defaults=function(){return{hidpi:!0,border_fill:"#eee",border_symmetry:"h",min_border:40,x_offset:0,y_offset:0,canvas_width:300,canvas_height:300,outer_width:300,outer_height:300,title_standoff:8,title_text_font:"helvetica",title_text_font_size:"20pt",title_text_font_style:"normal",title_text_color:"#444444",title_text_alpha:1,title_text_align:"center",title_text_baseline:"alphabetic",outline_line_color:"#aaaaaa",outline_line_width:1,outline_line_alpha:1,outline_line_join:"miter",outline_line_cap:"butt",outline_line_dash:[],outline_line_dash_offset:0}},e}(c),m=function(t){function e(){return w=e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.model=f,e}(i.Collection),{Model:f,Collection:new m,View:g}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,r=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t};n("common/grid_view_state",["underscore","./safebind","./view_state"],function(e,n,i){var o,s;return o=function(i){function o(){return this.layout_widths=t(this.layout_widths,this),this.layout_heights=t(this.layout_heights,this),this.setup_layout_properties=t(this.setup_layout_properties,this),s=o.__super__.constructor.apply(this,arguments)}return r(o,i),o.prototype.setup_layout_properties=function(){var t,e,n,r,i,o;for(this.register_property("layout_heights",this.layout_heights,!0),this.register_property("layout_widths",this.layout_widths,!0),i=this.get("childviewstates"),o=[],n=0,r=i.length;r>n;n++)t=i[n],o.push(function(){var n,r,i;for(i=[],n=0,r=t.length;r>n;n++)e=t[n],this.add_dependencies("layout_heights",e,"outer_height"),i.push(this.add_dependencies("layout_widths",e,"outer_width"));return i}.call(this));return o},o.prototype.initialize=function(t,r){return o.__super__.initialize.call(this,t,r),this.setup_layout_properties(),n(this,this,"change:childviewstates",this.setup_layout_properties),this.register_property("height",function(){return e.reduce(this.get("layout_heights"),function(t,e){return t+e},0)},!0),this.add_dependencies("height",this,"layout_heights"),this.register_property("width",function(){return e.reduce(this.get("layout_widths"),function(t,e){return t+e},0)},!0),this.add_dependencies("width",this,"layout_widths")},o.prototype.position_child_x=function(t){return t},o.prototype.position_child_y=function(t,e){return this.get("height")-t-e},o.prototype.maxdim=function(t,n){return 0===n.length?0:e.max(e.map(n,function(e){return e.get(t)}))},o.prototype.layout_heights=function(){var t,e;return e=function(){var e,n,r,i;for(r=this.get("childviewstates"),i=[],e=0,n=r.length;n>e;e++)t=r[e],i.push(this.maxdim("outer_height",t));return i}.call(this)},o.prototype.layout_widths=function(){var t,n,r,i,o,s;return o=this.get("childviewstates")[0].length,r=function(){var t,n,r,a;for(r=e.range(o),a=[],t=0,n=r.length;n>t;t++)i=r[t],a.push(function(){var t,e,n,r;for(n=this.get("childviewstates"),r=[],t=0,e=n.length;e>t;t++)s=n[t],r.push(s[i]);return r}.call(this));return a}.call(this),n=function(){var e,n,i;for(i=[],e=0,n=r.length;n>e;e++)t=r[e],i.push(this.maxdim("outer_width",t));return i}.call(this)},o.prototype.defaults=function(){return{childviewstates:[[]],border_space:0}},o}(i)})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("common/grid_plot",["underscore","backbone","./build_views","./safebind","./continuum_view","./has_parent","./grid_view_state","renderer/properties","tool/active_tool_manager"],function(t,n,r,i,o,s,a,l,c){var u,h,p,d,_,f;return h=function(o){function s(){return d=s.__super__.constructor.apply(this,arguments)}return e(s,o),s.prototype.tagName="div",s.prototype.className="bokeh grid_plot",s.prototype.default_options={scale:1},s.prototype.set_child_view_states=function(){var t,e,n,r,i,o,s;for(n=[],s=this.mget("children"),i=0,o=s.length;o>i;i++)t=s[i],e=function(){var e,n,i;for(i=[],e=0,n=t.length;n>e;e++)r=t[e],i.push(this.childviews[r.id].view_state);return i}.call(this),n.push(e);return this.viewstate.set("childviewstates",n)},s.prototype.initialize=function(e){return s.__super__.initialize.call(this,t.defaults(e,this.default_options)),this.viewstate=new a,this.toolbar_height=0,this.childviews={},this.build_children(),this.bind_bokeh_events(),this.render(),this},s.prototype.bind_bokeh_events=function(){var t=this;return i(this,this.model,"change:children",this.build_children),i(this,this.model,"change",this.render),i(this,this.viewstate,"change",this.render),i(this,this.model,"destroy",function(){return t.remove()})},s.prototype.b_events={"change:children model":"build_children","change model":"render","change viewstate":"render","destroy model":"remove"},s.prototype.build_children=function(){var t,e,n,i,o,s,a,l;for(t=[],l=this.mget_obj("children"),i=0,s=l.length;s>i;i++)for(n=l[i],o=0,a=n.length;a>o;o++)e=n[o],t.push(e);return r(this.childviews,t,{}),this.set_child_view_states()},s.prototype.makeButton=function(e,n,r,i){var o,s,a,l,c;return o=t.flatten(t.map(t.pluck(this.childviews,"tools"),t.values)),l=t.where(o,{constructor:n}),s=$("<button class='btn btn-small'>"+i+"</button>"),r.append(s),c=!1,a=!1,s.click(function(){return a?e.trigger("clear_active_tool"):e.trigger("active_tool",i)}),e.on(""+i+":deactivated",function(){return s.removeClass("active"),a=!1,t.each(l,function(t){var e;return e=t.evgen.toolName,t.evgen.eventSink.trigger(""+e+":deactivated")})}),e.on(""+i+":activated",function(){return s.addClass("active"),a=!0,t.each(l,function(t){var e;return e=t.evgen.toolName,t.evgen.eventSink.trigger(""+e+":activated")})})},s.prototype.addGridToolbar=function(){var e,r,i,o=this;return this.button_bar=$("<div class='grid_button_bar'/>"),this.button_bar.attr("style","position:absolute; left:10px; top:0px; "),this.toolEventSink=t.extend({},n.Events),this.atm=new c(this.toolEventSink),this.atm.bind_bokeh_events(),this.$el.append(this.button_bar),r=t.flatten(t.map(t.pluck(this.childviews,"tools"),t.values)),e=t.uniq(t.pluck(r,"constructor")),e.length>0&&(this.toolbar_height=35),i={},t.each(e,function(e){var n;return n=t.where(r,{constructor:e})[0].evgen_options.buttonText,i[n]=e}),t.map(i,function(t,e){return o.makeButton(o.toolEventSink,t,o.button_bar,e)}),t.map(r,function(t){return t.evgen.hide_button()})},s.prototype.render=function(){var e,n,r,i,o,a,l,c,u,h,p,d,_,f,g,m,v,y,b,w,x,k,j,C,T,M;for(s.__super__.render.call(this),T=t.values(this.childviews),b=0,k=T.length;k>b;b++)_=T[b],_.$el.detach();for(this.$el.html(""),this.addGridToolbar(),p=this.viewstate.get("layout_heights"),r=this.viewstate.get("layout_widths"),v=[0],t.reduceRight(p.slice(1),function(t,e){var n;return n=t+e,v.push(n),n},0),v.reverse(),g=[0],t.reduce(r.slice(0),function(t,e){var n;return n=t+e,g.push(n),n},0),a=[],o=null,M=this.mget("children"),u=w=0,j=M.length;j>w;u=++w)for(h=M[u],n=x=0,C=h.length;C>x;n=++x)c=h[n],_=this.childviews[c.id],y=this.viewstate.position_child_y(v[u],_.view_state.get("outer_height")-this.toolbar_height),m=this.viewstate.position_child_x(g[n],_.view_state.get("outer_width")),l=$("<div class='gp_plotwrapper'></div>"),l.attr("style","position: absolute; left:"+m+"px; top:"+y+"px"),l.append(_.$el),this.$el.append(l);return e=function(t,e){return t+e},d=t.reduce(p,e,0),i=d+this.toolbar_height,f=this.viewstate.get("outerwidth"),this.$el.attr("style","position:relative; height:"+i+"px;width:"+f+"px"),this.render_end()},s}(o.View),u=function(t){function n(){return _=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type="GridPlot",n.prototype.default_view=h,n.prototype.defaults=function(){return{children:[[]],border_space:0}},n}(s),p=function(t){function n(){return f=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=u,n}(n.Collection),{Model:u,Collection:new p,View:h}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("mapper/1d/categorical_mapper",["backbone","./linear_mapper"],function(t,n){var r,i,o,s;return r=function(t){function n(){return o=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.map_to_target=function(t){var e,r,i,o;return"number"==typeof t?n.__super__.map_to_target.call(this,t):(r=this.get("source_range").get("factors"),t.indexOf(":")>=0?(o=t.split(":"),e=o[0],i=o[1],i=parseFloat(i),n.__super__.map_to_target.call(this,r.indexOf(e)+.5+i)):n.__super__.map_to_target.call(this,r.indexOf(t)+1))},n.prototype.v_map_to_target=function(t){var e,r,i,o,s,a,l,c,u;if("number"==typeof t[0])return n.__super__.v_map_to_target.call(this,t);for(r=this.get("source_range").get("factors"),s=Array(t.length),i=l=0,c=t.length;c>=0?c>l:l>c;i=c>=0?++l:--l)a=t[i],a.indexOf(":")>=0?(u=a.split(":"),e=u[0],o=u[1],o=parseFloat(o),s[i]=r.indexOf(e)+.5+o):s[i]=r.indexOf(a)+1;return n.__super__.v_map_to_target.call(this,s)},n.prototype.map_from_target=function(t){var e;return t=n.__super__.map_from_target.call(this,t)-.5,e=this.get("source_range").get("factors"),e[Math.floor(t)]},n.prototype.v_map_from_target=function(t){var e,r,i,o,s;for(i=n.__super__.v_map_from_target.call(this,t),e=this.get("source_range").get("factors"),r=o=0,s=i.length;s>=0?s>o:o>s;r=s>=0?++o:--o)i[r]=e[Math.floor(i[r]-.5)];return i},n}(n.Model),i=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(t.Collection),{Model:r,Collection:new i}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,r=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t};n("common/plot",["underscore","backbone","require","./build_views","./safebind","./bulk_save","./continuum_view","./has_parent","./view_state","mapper/1d/linear_mapper","mapper/1d/categorical_mapper","mapper/2d/grid_mapper","renderer/properties","tool/active_tool_manager"],function(e,n,i,o,s,a,l,c,u,h,p,d,_,f){var g,m,v,y,b,w,x,k,j,C,T;return w=_.line_properties,x=_.text_properties,g=["image","underlay","glyph","overlay","annotation","tool"],b=function(t){return t()},b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||b,k=function(t,e){var n,r,i,o,s,a,l,c;return c=[null,null,null,null],r=c[0],n=c[1],l=c[2],a=c[3],s=0,o=!1,i=function(){return s=new Date,l=null,o=!1,a=t.apply(r,n)},function(){var t,c;return t=new Date,c=e-(t-s),r=this,n=arguments,0>=c&&!o?(clearTimeout(l),o=!0,b(i)):l||(l=setTimeout(function(){return b(i)},c)),a}},v=function(i){function l(){return this._mousemove=t(this._mousemove,this),this._mousedown=t(this._mousedown,this),j=l.__super__.constructor.apply(this,arguments)}return r(l,i),l.prototype.className="bokeh plotview",l.prototype.events={"mousemove .bokeh_canvas_wrapper":"_mousemove","mousedown .bokeh_canvas_wrapper":"_mousedown"},l.prototype.view_options=function(){return e.extend({plot_model:this.model,plot_view:this},this.options)},l.prototype._mousedown=function(t){var e,n,r,i,o;for(i=this.mousedownCallbacks,o=[],n=0,r=i.length;r>n;n++)e=i[n],o.push(e(t,t.layerX,t.layerY));return o},l.prototype._mousemove=function(t){var e,n,r,i,o;for(i=this.moveCallbacks,o=[],n=0,r=i.length;r>n;n++)e=i[n],o.push(e(t,t.layerX,t.layerY));return o},l.prototype.pause=function(){return this.is_paused=!0},l.prototype.unpause=function(t){return null==t&&(t=!1),this.is_paused=!1,t?this.request_render_canvas(!0):this.request_render()},l.prototype.request_render=function(){this.is_paused||this.throttled_render()},l.prototype.request_render_canvas=function(t){this.is_paused||this.throttled_render_canvas(t)},l.prototype.initialize=function(t){var r,i,o,s,a,c,_,m,v,y,b,j,C,T,M,N,S,A,E,O,P,z;for(l.__super__.initialize.call(this,e.defaults(t,this.default_options)),this.throttled_render=k(this.render,15),this.throttled_render_canvas=k(this.render_canvas,15),this.outline_props=new w(this,{},"outline_"),this.title_props=new x(this,{},"title_"),this.view_state=new u({canvas_width:null!=(c=t.canvas_width)?c:this.mget("canvas_width"),canvas_height:null!=(M=t.canvas_height)?M:this.mget("canvas_height"),x_offset:null!=(N=t.x_offset)?N:this.mget("x_offset"),y_offset:null!=(S=t.y_offset)?S:this.mget("y_offset"),outer_width:null!=(A=t.outer_width)?A:this.mget("outer_width"),outer_height:null!=(E=t.outer_height)?E:this.mget("outer_height"),min_border_top:null!=(O=null!=(P=t.min_border_top)?P:this.mget("min_border_top"))?O:this.mget("min_border"),min_border_bottom:null!=(z=null!=(_=t.min_border_bottom)?_:this.mget("min_border_bottom"))?z:this.mget("min_border"),min_border_left:null!=(m=null!=(v=t.min_border_left)?v:this.mget("min_border_left"))?m:this.mget("min_border"),min_border_right:null!=(y=null!=(b=t.min_border_right)?b:this.mget("min_border_right"))?y:this.mget("min_border"),requested_border_top:0,requested_border_bottom:0,requested_border_left:0,requested_border_right:0}),this.hidpi=null!=(j=t.hidpi)?j:this.mget("hidpi"),this.x_range=null!=(C=t.x_range)?C:this.mget_obj("x_range"),this.y_range=null!=(T=t.y_range)?T:this.mget_obj("y_range"),i=h.Model,"FactorRange"===this.x_range.type&&(i=p.Model),this.xmapper=new i({source_range:this.x_range,target_range:this.view_state.get("inner_range_horizontal")}),o=h.Model,"FactorRange"===this.y_range.type&&(o=p.Model),this.ymapper=new o({source_range:this.y_range,target_range:this.view_state.get("inner_range_vertical")}),this.mapper=new d.Model({domain_mapper:this.xmapper,codomain_mapper:this.ymapper}),this.requested_padding={top:0,bottom:0,left:0,right:0},this.old_mapper_state={x:null,y:null},this.am_rendering=!1,this.renderers={},this.tools={},this.eventSink=e.extend({},n.Events),this.moveCallbacks=[],this.mousedownCallbacks=[],this.keydownCallbacks=[],this.render_init(),this.render_canvas(!1),this.atm=new f(this.eventSink),this.levels={},s=0,a=g.length;a>s;s++)r=g[s],this.levels[r]={};return this.build_levels(),this.request_render(),this.atm.bind_bokeh_events(),this.bind_bokeh_events(),this},l.prototype.map_to_screen=function(t,n,r,i){var o,s;return"screen"===n?e.isArray(t)?o=t.slice(0):(o=new Float64Array(t.length),o.set(t)):o=this.xmapper.v_map_to_target(t),"screen"===i?e.isArray(r)?s=r.slice(0):(s=new Float64Array(r.length),s.set(r)):s=this.ymapper.v_map_to_target(r),o=this.view_state.v_vx_to_sx(o),s=this.view_state.v_vy_to_sy(s),[o,s]},l.prototype.map_from_screen=function(t,n,r){var i,o,s,a,l;return e.isArray(t)?i=t.slice(0):(i=new Float64Array(t.length),i.set(s)),e.isArray(n)?o=n.slice(0):(o=new Float64Array(n.length),o.set(a)),t=this.view_state.v_sx_to_vx(i),n=this.view_state.v_sy_to_vy(o),"screen"===r?(s=t,a=n):(l=this.mapper.v_map_from_target(t,n),s=l[0],a=l[1]),[s,a]},l.prototype.update_range=function(t){return null==t&&(t=this.initial_range_info),this.pause(),this.x_range.set(t.xr),this.y_range.set(t.yr),this.unpause()},l.prototype.build_tools=function(){return o(this.tools,this.mget_obj("tools"),this.view_options())},l.prototype.build_views=function(){return o(this.renderers,this.mget_obj("renderers"),this.view_options())},l.prototype.build_levels=function(){var t,n,r,i,o,s,a,l,c,u,h,p,d,_;for(r=e.keys(this.renderers),l=this.build_views(),i=e.difference(r,e.pluck(this.mget_obj("renderers"),"id")),console.log("renderers_to_remove",i),c=0,p=i.length;p>c;c++)t=i[c],delete this.levels.glyph[t];for(s=this.build_tools(),u=0,d=l.length;d>u;u++)a=l[u],n=a.mget("level"),this.levels[n][a.model.id]=a,a.bind_bokeh_events();for(h=0,_=s.length;_>h;h++)o=s[h],n=o.mget("level"),this.levels[n][o.model.id]=o,o.bind_bokeh_events();return this},l.prototype.bind_bokeh_events=function(){var t=this;return s(this,this.view_state,"change",function(){return t.request_render_canvas(),t.request_render()}),s(this,this.x_range,"change",this.request_render),s(this,this.y_range,"change",this.request_render),s(this,this.model,"change:renderers",this.build_levels),s(this,this.model,"change:tool",this.build_levels),s(this,this.model,"change",this.request_render),s(this,this.model,"destroy",function(){return t.remove()})},l.prototype.render_init=function(){return this.$el.append($("<div class='button_bar btn-group pull-top'/>\n<div class='plotarea'>\n<div class='bokeh_canvas_wrapper'>\n  <canvas class='bokeh_canvas'></canvas>\n</div>\n</div>")),this.button_bar=this.$el.find(".button_bar"),this.canvas_wrapper=this.$el.find(".bokeh_canvas_wrapper"),this.canvas=this.$el.find("canvas.bokeh_canvas")},l.prototype.render_canvas=function(t){var e,n,r,i,o;return null==t&&(t=!0),this.ctx=this.canvas[0].getContext("2d"),this.hidpi?(n=window.devicePixelRatio||1,e=this.ctx.webkitBackingStorePixelRatio||this.ctx.mozBackingStorePixelRatio||this.ctx.msBackingStorePixelRatio||this.ctx.oBackingStorePixelRatio||this.ctx.backingStorePixelRatio||1,o=n/e):o=1,i=this.view_state.get("outer_width"),r=this.view_state.get("outer_height"),this.canvas.width=i*o,this.canvas.height=r*o,this.button_bar.attr("style","width:"+i+"px;"),this.canvas_wrapper.attr("style","width:"+i+"px; height:"+r+"px"),this.canvas.attr("style","width:"+i+"px;"),this.canvas.attr("style","height:"+r+"px;"),this.canvas.attr("width",i*o).attr("height",r*o),this.$el.attr("width",i).attr("height",r),this.ctx.scale(o,o),this.ctx.translate(.5,.5),t?this.render():void 0},l.prototype.save_png=function(){var t;return this.render(),t=this.canvas[0].toDataURL(),this.model.set("png",this.canvas[0].toDataURL()),a([this.model])},l.prototype.set_initial_range=function(){var t,n;return n=[this.x_range.get("start"),this.x_range.get("end"),this.y_range.get("start"),this.y_range.get("end")],t=e.map(n,function(t){return null!=t&&!e.isNaN(t)}),t=e.all(t),t?this.initial_range_info={xr:{start:this.x_range.get("start"),end:this.x_range.get("end")},yr:{start:this.y_range.get("start"),end:this.y_range.get("end")}}:void 0},l.prototype.render=function(){var t,e,n,r,i,o,s,a,c,u,h,p,d,_,f,g,m,v,y,b,w;for(l.__super__.render.call(this),null==this.initial_range_info&&this.set_initial_range(),this.requested_padding={top:0,bottom:0,left:0,right:0},y=["image","underlay","glyph","overlay","annotation","tool"],f=0,m=y.length;m>f;f++){r=y[f],o=this.levels[r];for(n in o)if(p=o[n],null!=p.padding_request){i=p.padding_request();for(n in i)p=i[n],this.requested_padding[n]+=p}}h=this.mget("title"),h&&(this.title_props.set(this.ctx,{}),u=this.ctx.measureText(this.mget("title")).ascent,this.requested_padding.top+=u+this.mget("title_standoff")),c=this.mget("border_symmetry")||"",(c.indexOf("h")>=0||c.indexOf("H")>=0)&&(e=Math.max(this.requested_padding.left,this.requested_padding.right),this.requested_padding.left=e,this.requested_padding.right=e),(c.indexOf("v")>=0||c.indexOf("V")>=0)&&(e=Math.max(this.requested_padding.top,this.requested_padding.bottom),this.requested_padding.top=e,this.requested_padding.bottom=e),this.is_paused=!0,b=this.requested_padding;for(n in b)p=b[n],this.view_state.set("requested_border_"+n,p);for(this.is_paused=!1,this.ctx.fillStyle=this.mget("border_fill"),this.ctx.fillRect(0,0,this.view_state.get("canvas_width"),this.view_state.get("canvas_height")),this.ctx.fillStyle=this.mget("background_fill"),this.ctx.fillRect(this.view_state.get("border_left"),this.view_state.get("border_top"),this.view_state.get("inner_width"),this.view_state.get("inner_height")),this.outline_props.do_stroke&&(this.outline_props.set(this.ctx,{}),this.ctx.strokeRect(this.view_state.get("border_left"),this.view_state.get("border_top"),this.view_state.get("inner_width"),this.view_state.get("inner_height"))),t=!1,d=this.xmapper.get("mapper_state")[0],_=this.ymapper.get("mapper_state")[0],(Math.abs(this.old_mapper_state.x-d)>1e-8||Math.abs(this.old_mapper_state.y-_)>1e-8)&&(this.old_mapper_state.x=d,this.old_mapper_state.y=_,t=!0),this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(this.view_state.get("border_left"),this.view_state.get("border_top"),this.view_state.get("inner_width"),this.view_state.get("inner_height")),this.ctx.clip(),this.ctx.beginPath(),w=["image","underlay","glyph"],g=0,v=w.length;v>g;g++){r=w[g],o=this.levels[r];for(n in o)p=o[n],p.render(t)}return this.ctx.restore(),this.render_overlays(t),h?(s=this.view_state.get("outer_width")/2,a=u,this.title_props.set(this.ctx,{}),this.ctx.fillText(h,s,a)):void 0},l.prototype.render_overlays=function(t){var e,n,r,i,o,s,a,l;for(a=["overlay","annotation","tool"],l=[],o=0,s=a.length;s>o;o++)n=a[o],r=this.levels[n],l.push(function(){var n;n=[];for(e in r)i=r[e],n.push(i.render(t));return n}());return l},l}(l.View),m=function(t){function e(){return C=e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="Plot",e.prototype.default_view=v,e.prototype.add_renderers=function(t){var e;return e=this.get("renderers"),e=e.concat(t),this.set("renderers",e)},e.prototype.parent_properties=["background_fill","border_fill","canvas_width","canvas_height","outer_width","outer_height","min_border","min_border_top","min_border_bottom","min_border_left","min_border_right"],e.prototype.defaults=function(){return{data_sources:{},renderers:[],tools:[],title:"Plot"}},e.prototype.display_defaults=function(){return{hidpi:!0,background_fill:"#fff",border_fill:"#fff",border_symmetry:"h",min_border:40,x_offset:0,y_offset:0,canvas_width:300,canvas_height:300,outer_width:300,outer_height:300,title_standoff:8,title_text_font:"helvetica",title_text_font_size:"20pt",title_text_font_style:"normal",title_text_color:"#444444",title_text_alpha:1,title_text_align:"center",title_text_baseline:"alphabetic",outline_line_color:"#aaaaaa",outline_line_width:1,outline_line_alpha:1,outline_line_join:"miter",outline_line_cap:"butt",outline_line_dash:[],outline_line_dash_offset:0}},e}(c),y=function(t){function e(){return T=e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.model=m,e}(n.Collection),{Model:m,Collection:new y,View:v}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,r=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t};n("common/plot_context",["underscore","backbone","./build_views","./safebind","./has_parent","./continuum_view"],function(n,i,o,s,a,l){var c,u,h,p,d,_;return u=function(i){function a(){return this.removeplot=t(this.removeplot,this),this.closeall=t(this.closeall,this),p=a.__super__.constructor.apply(this,arguments)}return r(a,i),a.prototype.initialize=function(t){return this.views={},this.views_rendered=[!1],this.child_models=[],a.__super__.initialize.call(this,t),this.render()},a.prototype.delegateEvents=function(){return s(this,this.model,"destroy",this.remove),s(this,this.model,"change",this.render),a.__super__.delegateEvents.call(this)},a.prototype.build_children=function(){var t;return t=o(this.views,this.mget_obj("children"),{}),window.pc_created_views=t,window.pc_views=this.views,null},a.prototype.events={"click .closeall":"closeall"},a.prototype.size_textarea=function(t){var e;return e=$(t).height(0).prop("scrollHeight"),$(t).height(e)},a.prototype.closeall=function(){return this.mset("children",[]),this.model.save()},a.prototype.removeplot=function(t){var e,n,r,i,o;return n=parseInt($(t.currentTarget).parent().attr("data-plot_num")),r=this.model.resolve_ref(this.mget("children")[n]),i=this.views[r.get("id")],i.remove(),e=function(){var t,e,n,r;for(n=this.mget("children"),r=[],t=0,e=n.length;e>t;t++)o=n[t],o.id!==i.model.id&&r.push(o);return r}.call(this),this.mset("children",e),this.model.save(),!1},a.prototype.render=function(){var t,r,i,o,s,l,c,u,h,p,d,_,f,g=this;a.__super__.render.call(this),this.build_children(),_=this.views;for(r in _)e.call(_,r)&&(u=_[r],u.$el.detach());for(this.$el.html(""),s=n.keys(this.views).length,this.$el.append("<div>You have "+s+" plots</div>"),this.$el.append("<div><a class='closeall' href='#'>Close All Plots</a></div>"),this.$el.append("<br/>"),c=[],l={},f=this.mget("children"),t=p=0,d=f.length;d>p;t=++p)i=f[t],h=this.views[i.id],o=$("<div class='jsp' data-plot_num='"+t+"'></div>"),this.$el.append(o),o.append(h.el);return n.defer(function(){var t,e,n,r,i;for(r=g.$el.find(".plottitle"),i=[],e=0,n=r.length;n>e;e++)t=r[e],i.push(g.size_textarea($(t)));return i}),null},a}(l.View),c=function(t){function e(){return d=e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="PlotContext",e.prototype.default_view=u,e.prototype.url=function(){return e.__super__.url.call(this)},e.prototype.defaults=function(){return{children:[],render_loop:!0}},e}(a),h=function(t){function e(){return _=e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.model=c,e}(i.Collection),{Model:c,Collection:new h,View:u}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("mapper/color/linear_color_mapper",["underscore","backbone","common/has_properties"],function(t,n,r){var i,o,s,a;return i=function(n){function r(){return s=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.palette=this._build_palette(this.get("palette")),this.little_endian=this._is_little_endian()},r.prototype.v_map_screen=function(e){var n,r,i,o,s,a,l,c,u,h,p,d,_,f,g,m;if(r=new ArrayBuffer(4*e.length),i=new Uint32Array(r),l=null!=(_=this.get("low"))?_:t.min(e),s=null!=(f=this.get("high"))?f:t.max(e),n=this.palette.length-1,u=n/(s-l),c=-u*l,this.little_endian)for(a=p=0,g=e.length;g>=0?g>p:p>g;a=g>=0?++p:--p)o=e[a],o>s&&(o=s),l>o&&(o=l),h=this.palette[Math.floor(o*u+c)],i[a]=255<<24|(16711680&h)>>16|65280&h|(255&h)<<16;else for(a=d=0,m=e.length;m>=0?m>d:d>m;a=m>=0?++d:--d)o=e[a],o>s&&(o=s),l>o&&(o=l),h=this.palette[Math.floor(o*u+c)],i[a]=255|h<<8;return r},r.prototype._is_little_endian=function(){var t,e,n,r;return t=new ArrayBuffer(4),n=new Uint8ClampedArray(t),e=new Uint32Array(t),e[1]=168496141,r=!0,10===n[4]&&11===n[5]&&12===n[6]&&13===n[7]&&(r=!1),r},r.prototype._build_palette=function(t){var e,n,r,i;for(n=new Uint32Array(t.length+1),e=r=0,i=t.length;i>=0?i>r:r>i;e=i>=0?++r:--r)n[e]=t[e];return n[n.length-1]=t[t.length-1],n},r}(r),o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n.Collection),{Model:i,Collection:new o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("range/factor_range",["backbone","common/has_properties"],function(t,n){var r,i,o,s;return r=function(t){function n(){return o=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type="FactorRange",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),this.register_property("end",function(){return this.get("factors").length+.5},!0),this.add_dependencies("end",this,["factors"]),this.register_property("min",function(){return this.get("start")},!0),this.add_dependencies("min",this,["factors"]),this.register_property("max",function(){return this.get("end")},!0),this.add_dependencies("max",this,["factors"])},n.prototype.defaults=function(){return{start:.5,factors:[]}},n}(n),i=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(t.Collection),{Model:r,Collection:new i}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,r=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t};n("range/data_factor_range",["underscore","backbone","range/factor_range"],function(e,n,i){var o,s,a,l;return o=function(n){function i(){return this._get_values=t(this._get_values,this),a=i.__super__.constructor.apply(this,arguments)}return r(i,n),i.prototype.type="DataFactorRange",i.prototype._get_values=function(){var t,n,r,i,o,s,a;for(t=function(){var t,e,n,r;for(n=this.get("columns"),r=[],t=0,e=n.length;e>t;t++)o=n[t],r.push(this.get_obj("data_source").getcolumn(o));
            return r}.call(this),t=e.reduce(t,function(t,e){return t.concat(e)},[]),n={},s=0,a=t.length;a>s;s++)i=t[s],n[i]=!0;return r=e.keys(n),r=e.sortBy(r,function(t){return t})},i.prototype.dinitialize=function(t,e){return i.__super__.dinitialize.call(this,t,e),this.register_property,this.register_property("values",this._get_values,!0),this.add_dependencies("values",this,["data_source","columns"]),this.add_dependencies("values",this.get_obj("data_source"),["data_source","columns"])},i.prototype.defaults=function(){return{values:[],columns:[],data_source:null}},i}(i.Model),s=function(t){function e(){return l=e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.model=o,e}(n.Collection),{Model:o,Collection:new s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("range/data_range1d",["underscore","backbone","range/range1d"],function(t,n,r){var i,o,s,a;return i=function(n){function r(){return s=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type="DataRange1d",r.prototype._get_minmax=function(){var e,n,r,i,o,s,a,l,c,u,h,p,d,_,f,g;for(r=[],d=this.get("sources"),c=0,h=d.length;h>c;c++)for(s=d[c],a=this.resolve_ref(s.source),_=s.columns,u=0,p=_.length;p>u;u++)n=_[u],r.push(a.getcolumn(n));return r=t.flatten(r),r=t.filter(r,function(t){return"string"!=typeof t}),r=t.reject(r,function(t){return isNaN(t)}),f=[t.min(r),t.max(r)],o=f[0],i=f[1],l=i!==o?(i-o)*(1+this.get("rangepadding")):0!==i?Math.abs(i)*(1+this.get("rangepadding")):2,e=(i+o)/2,g=[e-l/2,e+l/2],o=g[0],i=g[1],[o,i]},r.prototype._get_start=function(){return t.isNullOrUndefined(this.get("_start"))?this.get("minmax")[0]:this.get("_start")},r.prototype._set_start=function(t){return this.set("_start",t)},r.prototype._get_end=function(){return t.isNullOrUndefined(this.get("_end"))?this.get("minmax")[1]:this.get("_end")},r.prototype._set_end=function(t){return this.set("_end",t)},r.prototype.dinitialize=function(t,e){var n,i,o,s,a;for(this.register_property("minmax",this._get_minmax,!0),this.add_dependencies("minmax",this,["sources"],["rangepadding"]),a=this.get("sources"),o=0,s=a.length;s>o;o++)n=a[o],i=this.resolve_ref(n.source),this.add_dependencies("minmax",i,"data");return this.register_property("start",this._get_start,!0),this.register_setter("start",this._set_start),this.add_dependencies("start",this,["minmax","_start"]),this.register_property("end",this._get_end,!0),this.register_setter("end",this._set_end),this.add_dependencies("end",this,["minmax","_end"]),r.__super__.dinitialize.call(this,t,e)},r.prototype.defaults=function(){return{sources:[],rangepadding:.1}},r}(r.Model),o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n.Collection),{Model:i,Collection:new o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("common/plot_widget",["./continuum_view","./safebind"],function(t){var n,r;return n=function(t){function n(){return r=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.tagName="div",n.prototype.initialize=function(t){return this.plot_model=t.plot_model,this.plot_view=t.plot_view,this._fixup_line_dash(this.plot_view.ctx),this._fixup_line_dash_offset(this.plot_view.ctx),this._fixup_image_smoothing(this.plot_view.ctx),this._fixup_measure_text(this.plot_view.ctx),n.__super__.initialize.call(this,t)},n.prototype._fixup_line_dash=function(t){return t.setLineDash||(t.setLineDash=function(e){return t.mozDash=e,t.webkitLineDash=e}),t.getLineDash?void 0:t.getLineDash=function(){return t.mozDash}},n.prototype._fixup_line_dash_offset=function(t){return t.setLineDashOffset=function(e){return t.lineDashOffset=e,t.mozDashOffset=e,t.webkitLineDashOffset=e},t.getLineDashOffset=function(){return t.mozDashOffset}},n.prototype._fixup_image_smoothing=function(t){return t.setImageSmoothingEnabled=function(e){return t.imageSmoothingEnabled=e,t.mozImageSmoothingEnabled=e,t.oImageSmoothingEnabled=e,t.webkitImageSmoothingEnabled=e},t.getImageSmoothingEnabled=function(){var e;return null!=(e=t.imageSmoothingEnabled)?e:!0}},n.prototype._fixup_measure_text=function(t){return t.measureText&&null==t.html5MeasureText?(t.html5MeasureText=t.measureText,t.measureText=function(e){var n;return n=t.html5MeasureText(e),n.ascent=1.6*t.html5MeasureText("m").width,n}):void 0},n.prototype.bind_bokeh_events=function(){},n.prototype.request_render=function(){return this.plot_view.request_render()},n}(t.View)})}.call(this),function(){n("common/textutils",[],function(){var t,e;return t={},e=function(e){var n,r,i,o,s;if(null!=t[e])return t[e];s=$("<span>Hg</span>").css({font:e}),n=$('<div style="display: inline-block; width: 1px; height: 0px;"></div>'),i=$("<div></div>"),i.append(s,n),r=$("body"),r.append(i);try{o={},n.css({verticalAlign:"baseline"}),o.ascent=n.offset().top-s.offset().top,n.css({verticalAlign:"bottom"}),o.height=n.offset().top-s.offset().top,o.descent=o.height-o.ascent}finally{i.remove()}return t[e]=o,o},{getTextHeight:e}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/annotation/legend",["underscore","common/has_parent","common/plot_widget","common/textutils","renderer/properties"],function(t,n,r,i,o){var s,a,l,c,u,h,p,d,_;return c=o.glyph_properties,u=o.line_properties,h=o.text_properties,a=function(n){function r(){return p=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(e){return r.__super__.initialize.call(this,e),this.label_props=new h(this,this.model,"label_"),this.border_props=new u(this,this.model,"border_"),this.mget("legend_names")?this.legend_names=this.mget("legend_names"):(this.legends=this.mget("legends"),this.legend_names=t.keys(this.mget("legends"))),this.calc_dims()},r.prototype.delegateEvents=function(t){return r.__super__.delegateEvents.call(this,t),this.listenTo(this.plot_view.view_state,"change",this.calc_dims)},r.prototype.calc_dims=function(){var e,n,r,o,s,a,l,c,u,h,p,d,_;return r=this.mget("label_height"),this.glyph_height=this.mget("glyph_height"),o=this.mget("label_width"),this.glyph_width=this.mget("glyph_width"),a=this.mget("legend_spacing"),this.label_height=t.max([i.getTextHeight(this.label_props.font(this)),r,this.glyph_height]),this.legend_height=this.label_height,this.legend_height=this.legend_names.length*this.legend_height+(1+this.legend_names.length)*a,e=this.plot_view.ctx,e.save(),this.label_props.set(e,this),u=t.map(this.legend_names,function(t){return e.measureText(t).width}),e.restore(),c=t.max(u),this.label_width=t.max([c,o]),this.legend_width=this.label_width+this.glyph_width+3*a,l=this.mget("orientation"),s=this.mget("legend_padding"),n=this.plot_view.view_state.get("inner_range_horizontal"),h=this.plot_view.view_state.get("inner_range_vertical"),"top_right"===l?(p=n.get("end")-s-this.legend_width,d=h.get("end")-s):"top_left"===l?(p=n.get("start")+s,d=h.get("end")-s):"bottom_left"===l?(p=n.get("start")+s,d=h.get("start")+s+this.legend_height):"bottom_right"===l?(p=n.get("end")-s-this.legend_width,d=h.get("start")+s+this.legend_height):"absolute"===l&&(_=this.absolute_coords,p=_[0],d=_[1]),p=this.plot_view.view_state.vx_to_sx(p),d=this.plot_view.view_state.vy_to_sy(d),this.box_coords=[p,d]},r.prototype.render=function(){var t,e,n,r,i,o,s,a,l,c,u,h,p,d,_,f,g,m,v,y;for(t=this.plot_view.ctx,t.save(),t.fillStyle=this.plot_model.get("background_fill"),this.border_props.set(t,this),t.beginPath(),t.rect(this.box_coords[0],this.box_coords[1],this.legend_width,this.legend_height),t.fill(),t.stroke(),r=this.mget("legend_spacing"),v=this.legend_names,e=_=0,g=v.length;g>_;e=++_)for(n=v[e],p=e*this.label_height,d=(1+e)*r,c=this.box_coords[1]+this.label_height/2+p+d,s=this.box_coords[0]+r,a=this.box_coords[0]+2*r+this.label_width,l=a+this.glyph_width,u=this.box_coords[1]+p+d,h=u+this.glyph_height,this.label_props.set(t,this),t.fillText(n,s,c),y=this.model.resolve_ref(this.legends[n]),f=0,m=y.length;m>f;f++)i=y[f],o=this.plot_view.renderers[i.id],o.draw_legend(t,a,l,u,h);return t.restore()},r}(r),s=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=a,n.prototype.type="Legend",n.prototype.display_defaults=function(){return{level:"overlay",border_line_color:"black",border_line_width:1,border_line_alpha:1,border_line_join:"miter",border_line_cap:"butt",border_line_dash:[],border_line_dash_offset:0,label_standoff:15,label_text_font:"helvetica",label_text_font_size:"10pt",label_text_font_style:"normal",label_text_color:"#444444",label_text_alpha:1,label_text_align:"left",label_text_baseline:"middle",glyph_height:20,glyph_width:20,label_height:20,label_width:50,legend_padding:10,legend_spacing:3,orientation:"top_right",datapoint:null}},n}(n),l=function(t){function n(){return _=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(Backbone.Collection),{Model:s,Collection:new l,View:a}})}.call(this),function(){function t(e,n){return this instanceof t?(this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),n&&this._initFormat(n),this.clear(),void 0):new t(e,n)}t.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,n=[];if(!this._intersects(t,e.bbox))return n;for(var r,i,o,s,a=[];e;){for(r=0,i=e.children.length;i>r;r++)o=e.children[r],s=e.leaf?this.toBBox(o):o.bbox,this._intersects(t,s)&&(e.leaf?n.push(o):this._contains(t,s)?this._all(o,n):a.push(o));e=a.pop()}return n},load:function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0,n=t.length;n>e;e++)this.insert(t[e]);return this}var r=this._build(t.slice(),0);if(this.data.children.length)if(this.data.height===r.height)this._splitRoot(this.data,r);else{if(this.data.height<r.height){var i=this.data;this.data=r,r=i}this._insert(r,this.data.height-r.height-1,!0)}else this.data=r;return this},insert:function(t){return t&&this._insert(t,this.data.height-1),this},clear:function(){return this.data={children:[],leaf:!0,bbox:this._empty(),height:1},this},remove:function(t){if(!t)return this;for(var e,n,r,i,o=this.data,s=this.toBBox(t),a=[],l=[];o||a.length;){if(o||(o=a.pop(),n=a[a.length-1],e=l.pop(),i=!0),o.leaf&&(r=o.children.indexOf(t),-1!==r))return o.children.splice(r,1),a.push(o),this._condense(a),this;i||o.leaf||!this._contains(o.bbox,s)?n?(e++,o=n.children[e],i=!1):o=null:(a.push(o),l.push(e),e=0,n=o,o=o.children[0])}return this},toBBox:function(t){return t},compareMinX:function(t,e){return t[0]-e[0]},compareMinY:function(t,e){return t[1]-e[1]},toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},_all:function(t,e){for(var n=[];t;)t.leaf?e.push.apply(e,t.children):n.push.apply(n,t.children),t=n.pop();return e},_build:function(t,e,n){var r,i=t.length,o=this._maxEntries;if(o>=i)return r={children:t,leaf:!0,height:1},this._calcBBox(r),r;e||(n=Math.ceil(Math.log(i)/Math.log(o)),o=Math.ceil(i/Math.pow(o,n-1)),t.sort(this.compareMinX)),r={children:[],height:n};var s,a,l,c,u,h=Math.ceil(i/o)*Math.ceil(Math.sqrt(o)),p=Math.ceil(i/o),d=1===e%2?this.compareMinX:this.compareMinY;for(s=0;i>s;s+=h)for(l=t.slice(s,s+h).sort(d),a=0,c=l.length;c>a;a+=p)u=this._build(l.slice(a,a+p),e+1,n-1),r.children.push(u);return this._calcBBox(r),r},_chooseSubtree:function(t,e,n,r){for(var i,o,s,a,l,c,u,h;;){if(r.push(e),e.leaf||r.length-1===n)break;for(u=h=1/0,i=0,o=e.children.length;o>i;i++)s=e.children[i],l=this._area(s.bbox),c=this._enlargedArea(t,s.bbox)-l,h>c?(h=c,u=u>l?l:u,a=s):c===h&&u>l&&(u=l,a=s);e=a}return e},_insert:function(t,e,n){var r=n?t.bbox:this.toBBox(t),i=[],o=this._chooseSubtree(r,this.data,e,i);for(o.children.push(t),this._extend(o.bbox,r);e>=0&&i[e].children.length>this._maxEntries;)this._split(i,e),e--;this._adjustParentBBoxes(r,i,e)},_split:function(t,e){var n=t[e],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var o={children:n.children.splice(this._chooseSplitIndex(n,i,r)),height:n.height};n.leaf&&(o.leaf=!0),this._calcBBox(n),this._calcBBox(o),e?t[e-1].children.push(o):this._splitRoot(n,o)},_splitRoot:function(t,e){this.data={},this.data.children=[t,e],this.data.height=t.height+1,this._calcBBox(this.data)},_chooseSplitIndex:function(t,e,n){var r,i,o,s,a,l,c,u;for(l=c=1/0,r=e;n-e>=r;r++)i=this._distBBox(t,0,r),o=this._distBBox(t,r,n),s=this._intersectionArea(i,o),a=this._area(i)+this._area(o),l>s?(l=s,u=r,c=c>a?a:c):s===l&&c>a&&(c=a,u=r);return u},_chooseSplitAxis:function(t,e,n){var r=t.leaf?this.compareMinX:this._compareNodeMinX,i=t.leaf?this.compareMinY:this._compareNodeMinY,o=this._allDistMargin(t,e,n,r),s=this._allDistMargin(t,e,n,i);s>o&&t.children.sort(r)},_allDistMargin:function(t,e,n,r){t.children.sort(r);var i,o,s=this._distBBox(t,0,e),a=this._distBBox(t,n-e,n),l=this._margin(s)+this._margin(a);for(i=e;n-e>i;i++)o=t.children[i],this._extend(s,t.leaf?this.toBBox(o):o.bbox),l+=this._margin(s);for(i=n-e-1;i>=e;i--)o=t.children[i],this._extend(a,t.leaf?this.toBBox(o):o.bbox),l+=this._margin(a);return l},_distBBox:function(t,e,n){for(var r,i=this._empty(),o=e;n>o;o++)r=t.children[o],this._extend(i,t.leaf?this.toBBox(r):r.bbox);return i},_calcBBox:function(t){t.bbox=this._distBBox(t,0,t.children.length)},_adjustParentBBoxes:function(t,e,n){for(var r=n;r>=0;r--)this._extend(e[r].bbox,t)},_condense:function(t){for(var e,n=t.length-1;n>=0;n--)0===t[n].children.length?n>0?(e=t[n-1].children,e.splice(e.indexOf(t[n]),1)):this.clear():this._calcBBox(t[n])},_contains:function(t,e){return t[0]<=e[0]&&t[1]<=e[1]&&e[2]<=t[2]&&e[3]<=t[3]},_intersects:function(t,e){return e[0]<=t[2]&&e[1]<=t[3]&&e[2]>=t[0]&&e[3]>=t[1]},_extend:function(t,e){return t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t},_area:function(t){return(t[2]-t[0])*(t[3]-t[1])},_margin:function(t){return t[2]-t[0]+(t[3]-t[1])},_enlargedArea:function(t,e){return(Math.max(e[2],t[2])-Math.min(e[0],t[0]))*(Math.max(e[3],t[3])-Math.min(e[1],t[1]))},_intersectionArea:function(t,e){var n=Math.max(t[0],e[0]),r=Math.max(t[1],e[1]),i=Math.min(t[2],e[2]),o=Math.min(t[3],e[3]);return Math.max(0,i-n)*Math.max(0,o-r)},_empty:function(){return[1/0,1/0,-1/0,-1/0]},_compareNodeMinX:function(t,e){return t.bbox[0]-e.bbox[0]},_compareNodeMinY:function(t,e){return t.bbox[1]-e.bbox[1]},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return [a"+t.join(", a")+"];")}},"function"==typeof n&&n.amd?n("rbush",[],function(){return t}):"undefined"!=typeof module?module.exports=t:"undefined"!=typeof self?self.rbush=t:window.rbush=t}(),function(){n("common/mathutils",[],function(){var t,e,n;return n=function(t){for(;0>t;)t+=2*Math.PI;for(;t>2*Math.PI;)t-=2*Math.PI;return t},e=function(t,e){return Math.abs(n(t-e))},t=function(t,r,i,o){var s;return t=n(t),s=e(r,i),"anticlock"===o?e(r,t)<=s&&e(t,i)<=s:!(e(r,t)<=s&&e(t,i)<=s)},{angle_norm:n,angle_dist:e,angle_between:t}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e},r=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};n("renderer/glyph/glyph",["underscore","common/has_parent","common/plot_widget","renderer/properties"],function(t,n,i,o){var s,a,l,c;return a=function(n){function i(){return l=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.initialize=function(e){var n;return i.__super__.initialize.call(this,e),this.need_set_data=!0,this.glyph_props=this.init_glyph(this.mget("glyphspec")),this.have_selection_props=!1,this.mget("selection_glyphspec")?(n=t.extend({},this.mget("glyphspec"),this.mget("selection_glyphspec")),this.selection_glyphprops=this.init_glyph(n),this.have_selection_props=!0):this.selection_glyphprops=this.glyph_props,this.mget("nonselection_glyphspec")?(n=t.extend({},this.mget("glyphspec"),this.mget("nonselection_glyphspec")),this.nonselection_glyphprops=this.init_glyph(n),this.have_selection_props=!0):this.nonselection_glyphprops=this.glyph_props,this.mget("server_data_source")&&this.setup_server_data(),this.listenTo(this,"change:server_data_source",this.setup_server_data)},i.prototype.init_glyph=function(t){var e,n;return n={},r.call(this._properties,"line")>=0&&(n.line_properties=new o.line_properties(this,t)),r.call(this._properties,"fill")>=0&&(n.fill_properties=new o.fill_properties(this,t)),r.call(this._properties,"text")>=0&&(n.text_properties=new o.text_properties(this,t)),e=new o.glyph_properties(this,t,this._fields,n)},i.prototype.set_data=function(t){var e,n,r,i,o,s,a,l,c,u,h,p,d,_,f;for(null==t&&(t=!0),s=this.mget_obj("data_source"),p=this._fields,c=0,h=p.length;h>c;c++){if(n=p[c],n.indexOf(":")>-1&&(d=n.split(":"),n=d[0],i=d[1]),this[n]=this.glyph_props.source_v_select(n,s),"direction"===n){for(a=new Uint8Array(this.direction.length),r=u=0,_=this.direction.length;_>=0?_>u:u>_;r=_>=0?++u:--u)e=this.direction[r],"clock"===e?a[r]=!1:"anticlock"===e?a[r]=!0:a=0/0;this.direction=a}n.indexOf("angle")>-1&&(this[n]=function(){var t,e,r,i;for(r=this[n],i=[],t=0,e=r.length;e>t;t++)l=r[t],i.push(-l);return i}.call(this))}return null!=this._set_data&&this._set_data(),o=this[n].length,this.all_indices=function(){f=[];for(var t=0;o>=0?o>t:t>o;o>=0?t++:t--)f.push(t);return f}.apply(this),this.have_new_data=!0,t?this.request_render():void 0},i.prototype.render=function(t){var e,n,r,i,o,s,a,l,c,u,h,p,d=this;if(null==t&&(t=!0),this.need_set_data&&(this.set_data(!1),this.need_set_data=!1),this._map_data(),o=null!=this._mask_data&&"FactorRange"!==this.plot_view.x_range.type&&"FactorRange"!==this.plot_view.y_range.type?this._mask_data():this.all_indices,e=this.plot_view.ctx,e.save(),n=function(t,e,n){var r;return r=d.mget_obj("data_source"),d.have_new_data&&(null!=n.fill_properties&&n.fill_properties.do_fill&&n.fill_properties.set_prop_cache(r),null!=n.line_properties&&n.line_properties.do_stroke&&n.line_properties.set_prop_cache(r),null!=n.text_properties&&n.text_properties.set_prop_cache(r)),d._render(t,e,n)},a=this.mget_obj("data_source").get("selected"),a&&a.length&&this.have_selection_props){for(l=function(){var t,e,n,i;for(n=this.all_indices,i=[],t=0,e=n.length;e>t;t++)r=n[t],i.push(!1);return i}.call(this),c=0,h=a.length;h>c;c++)i=a[c],l[i]=!0;for(a=new Array,s=new Array,u=0,p=o.length;p>u;u++)r=o[u],l[r]?a.push(r):s.push(r);n(e,a,this.selection_glyphprops),n(e,s,this.nonselection_glyphprops)}else n(e,o,this.glyph_props);return this.have_new_data=!1,e.restore()},i.prototype.xrange=function(){return this.plot_view.x_range},i.prototype.yrange=function(){return this.plot_view.y_range},i.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,"change",this.request_render),this.listenTo(this.mget_obj("data_source"),"change",this.set_data)},i.prototype.distance_vector=function(t,e,n,r){var i,o,s,a,l,c,u,h,p,d,_,f,g,m,v=this;return null==r&&(r=!1),h=this.glyph_props[t].units,f=this.glyph_props[e].units,"x"===t?l=this.plot_view.xmapper:"y"===t&&(l=this.plot_view.ymapper),d=this.mget_obj("data_source"),a=function(t){return v.glyph_props.source_v_select(t,d)},_=a(e),"screen"===f?_:("center"===n?(o=function(){var t,e,n;for(n=[],t=0,e=_.length;e>t;t++)i=_[t],n.push(i/2);return n}(),p=a(t),"screen"===h&&(p=l.v_map_from_target(p)),"string"==typeof p[0]&&(p=l.v_map_to_target(p)),c=function(){var t,e,n;for(n=[],s=t=0,e=p.length;e>=0?e>t:t>e;s=e>=0?++t:--t)n.push(p[s]-o[s]);return n}(),u=function(){var t,e,n;for(n=[],s=t=0,e=p.length;e>=0?e>t:t>e;s=e>=0?++t:--t)n.push(p[s]+o[s]);return n}()):(c=a(t),"screen"===h&&(c=l.v_map_from_target(c)),u=function(){var t,e,n;for(n=[],s=t=0,e=c.length;e>=0?e>t:t>e;s=e>=0?++t:--t)n.push(c[s]+_[s]);return n}()),g=l.v_map_to_target(c),m=l.v_map_to_target(u),r?function(){var t,e,n;for(n=[],s=t=0,e=g.length;e>=0?e>t:t>e;s=e>=0?++t:--t)n.push(Math.ceil(Math.abs(m[s]-g[s])));return n}():function(){var t,e,n;for(n=[],s=t=0,e=g.length;e>=0?e>t:t>e;s=e>=0?++t:--t)n.push(Math.abs(m[s]-g[s]));return n}())},i.prototype.get_reference_point=function(){var e;return e=this.mget("reference_point"),t.isNumber(e)?this.data[e]:e},i.prototype.draw_legend=function(){return null},i.prototype._generic_line_legend=function(t,e,n,r,i){var o,s,a;return s=null!=(a=this.get_reference_point())?a:0,o=this.glyph_props.line_properties,t.save(),t.beginPath(),t.moveTo(e,(r+i)/2),t.lineTo(n,(r+i)/2),o.do_stroke&&(o.set_vectorize(t,s),t.stroke()),t.restore()},i.prototype._generic_area_legend=function(t,e,n,r,i){var o,s,a,l,c,u,h,p,d,_,f;return c=null!=(f=this.get_reference_point())?f:0,l=[c],_=Math.abs(n-e),s=.1*_,a=Math.abs(i-r),o=.1*a,u=e+s,h=n-s,p=r+o,d=i-o,this.glyph_props.fill_properties.do_fill&&(this.glyph_props.fill_properties.set_vectorize(t,c),t.fillRect(u,p,h-u,d-p)),this.glyph_props.line_properties.do_stroke?(t.beginPath(),t.rect(u,p,h-u,d-p),this.glyph_props.line_properties.set_vectorize(t,c),t.stroke()):void 0},i.prototype.hit_test=function(t){return"point"===t.type?null!=this._hit_point?this._hit_point(t):(null==this._point_hit_warned&&(console.log("WARNING: 'point' selection not available on renderer"),this._point_hit_warned=!0),null):"rect"===t.type?null!=this._hit_rect?this._hit_rect(t):(null==this._rect_hit_warned&&(console.log("WARNING: 'rect' selection not avaliable on renderer"),this._rect_hit_warned=!0),null):(console.log("unrecognized selection geometry type '"+t.type+"'"),null)},i}(i),s=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.defaults=function(){return{data_source:null}},n.prototype.display_defaults=function(){return{level:"glyph",radius_units:"data",length_units:"screen",angle_units:"deg",start_angle_units:"deg",end_angle_units:"deg"}},n}(n),{Model:s,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/annular_wedge",["underscore","rbush","common/mathutils","renderer/properties","./glyph"],function(t,n,r,i,o){var s,a,l,c;return a=function(i){function o(){return l=o.__super__.constructor.apply(this,arguments)}return e(o,i),o.prototype._fields=["x","y","inner_radius","outer_radius","start_angle","end_angle","direction:string"],o.prototype._properties=["line","fill"],o.prototype._set_data=function(){var e,r,i,o;for(this.max_radius=t.max(this.outer_radius),this.index=n(),r=[],e=i=0,o=this.x.length;o>=0?o>i:i>o;e=o>=0?++i:--i)isNaN(this.x[e]+this.y[e])||r.push([this.x[e],this.y[e],this.x[e],this.y[e],{i:e}]);return this.index.load(r)},o.prototype._map_data=function(){var t,e,n,r,i;for(n=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=n[0],this.sy=n[1],this.inner_radius=this.distance_vector("x","inner_radius","edge"),this.outer_radius=this.distance_vector("x","outer_radius","edge"),this.angle=new Float32Array(this.start_angle.length),i=[],t=e=0,r=this.start_angle.length;r>=0?r>e:e>r;t=r>=0?++e:--e)i.push(this.angle[t]=this.end_angle[t]-this.start_angle[t]);return i},o.prototype._render=function(t,e,n,r,i,o,s){var a,l,c,u;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.inner_radius),null==s&&(s=this.outer_radius),u=[],l=0,c=e.length;c>l;l++)a=e[l],isNaN(r[a]+i[a]+o[a]+s[a]+this.start_angle[a]+this.angle[a])||(t.translate(r[a],i[a]),t.rotate(this.start_angle[a]),t.moveTo(s[a],0),t.beginPath(),t.arc(0,0,s[a],0,this.angle[a],this.direction[a]),t.rotate(this.angle[a]),t.lineTo(o[a],0),t.arc(0,0,o[a],0,-this.angle[a],!this.direction[a]),t.closePath(),t.rotate(-this.angle[a]-this.start_angle[a]),t.translate(-r[a],-i[a]),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,a),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,a),u.push(t.stroke())):u.push(void 0));return u},o.prototype._hit_point=function(e){var n,i,o,s,a,l,c,u,h,p,d,_,f,g,m,v,y,b,w,x,k,j,C,T,M,N,S,A,E,O,P,z,D,F,$,q,B,I,L,R,U,V,H;if(I=[e.vx,e.vy],v=I[0],w=I[1],j=this.plot_view.xmapper.map_from_target(v),M=this.plot_view.ymapper.map_from_target(w),"screen"===this.outer_radius_units?(y=v-this.max_radius,b=v+this.max_radius,L=this.plot_view.xmapper.v_map_from_target([y,b]),C=L[0],T=L[1],x=w-this.max_radius,k=w+this.max_radius,R=this.plot_view.ymapper.v_map_from_target([x,k]),N=R[0],S=R[1]):(C=j-this.max_radius,T=j+this.max_radius,N=M-this.max_radius,S=M+this.max_radius),i=function(){var t,e,n,r;for(n=this.index.search([C,N,T,S]),r=[],t=0,e=n.length;e>t;t++)u=n[t],r.push(u[4].i);return r}.call(this),o=[],"screen"===this.outer_radius_units)for(p=this.plot_view.view_state.vx_to_sx(v),f=this.plot_view.view_state.vy_to_sy(w),A=0,z=i.length;z>A;A++)c=i[A],h=Math.pow(this.outer_radius[c],2),a=Math.pow(this.sx[c]-p,2)+Math.pow(this.sy[c]-f,2),h>=a&&o.push([c,a]);else for(E=0,D=i.length;D>E;E++)c=i[E],h=Math.pow(this.outer_radius[c],2),d=this.plot_view.xmapper.map_to_target(j),_=this.plot_view.xmapper.map_to_target(this.x[c]),g=this.plot_view.ymapper.map_to_target(M),m=this.plot_view.ymapper.map_to_target(this.y[c]),a=Math.pow(d-_,2)+Math.pow(g-m,2),h>=a&&o.push([c,a]);if(s=[],"screen"===this.inner_radius_units)for(p=this.plot_view.view_state.vx_to_sx(v),f=this.plot_view.view_state.vy_to_sy(w),O=0,F=o.length;F>O;O++)U=o[O],c=U[0],a=U[1],h=Math.pow(this.inner_radius[c],2),a>=h&&s.push([c,a]);else for(P=0,$=o.length;$>P;P++)V=o[P],c=V[0],a=V[1],h=Math.pow(this.inner_radius[c],2),d=this.plot_view.xmapper.map_to_target(j),_=this.plot_view.xmapper.map_to_target(this.x[c]),g=this.plot_view.ymapper.map_to_target(M),m=this.plot_view.ymapper.map_to_target(this.y[c]),a>=h&&s.push([c,a]);for(l=[],B=0,q=s.length;q>B;B++)H=s[B],c=H[0],a=H[1],p=this.plot_view.view_state.vx_to_sx(v),f=this.plot_view.view_state.vy_to_sy(w),n=Math.atan2(f-this.sy[c],p-this.sx[c]),r.angle_between(-n,-this.start_angle[c],-this.end_angle[c],this.direction[c])&&l.push([c,a]);return l=t.chain(l).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value()},o.prototype.draw_legend=function(t,e,n,r,i){var o,s,a,l,c,u,h,p;return c=null!=(p=this.get_reference_point())?p:0,o=[c],u={},u[c]=(e+n)/2,h={},h[c]=(r+i)/2,l=.5*Math.min(Math.abs(n-e),Math.abs(i-r)),s={},s[c]=.25*l,a={},a[c]=.8*l,this._render(t,o,this.glyph_props,u,h,s,a)},o}(o.View),s=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=a,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{direction:"anticlock",fill_color:"gray",fill_alpha:1,line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(o.Model),{Model:s,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/annulus",["underscore","rbush","renderer/properties","./glyph"],function(t,n,r,i){var o,s,a,l;return s=function(r){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,r),i.prototype._fields=["x","y","inner_radius","outer_radius"],i.prototype._properties=["line","fill"],i.prototype._set_data=function(){var e,r,i,o;for(this.max_radius=t.max(this.outer_radius),this.index=n(),r=[],e=i=0,o=this.x.length;o>=0?o>i:i>o;e=o>=0?++i:--i)isNaN(this.x[e]+this.y[e])||r.push([this.x[e],this.y[e],this.x[e],this.y[e],{i:e}]);return this.index.load(r)},i.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=t[0],this.sy=t[1],this.inner_radius=this.distance_vector("x","inner_radius","edge"),this.outer_radius=this.distance_vector("x","outer_radius","edge")},i.prototype._render=function(t,e,n,r,i,o,s){var a,l,c,u;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.inner_radius),null==s&&(s=this.outer_radius),u=[],l=0,c=e.length;c>l;l++)a=e[l],isNaN(r[a]+i[a]+o[a]+s[a])||(t.beginPath(),t.arc(r[a],i[a],o[a],0,2*2*Math.PI,!1),t.moveTo(r[a]+s[a],i[a]),t.arc(r[a],i[a],s[a],0,2*2*Math.PI,!0),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,a),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,a),u.push(t.stroke())):u.push(void 0));return u},i.prototype._hit_point=function(e){var n,r,i,o,s,a,l,c,u,h,p,d,_,f,g,m,v,y,b,w,x,k,j,C,T,M,N,S,A,E,O,P,z,D,F,$,q,B;if(D=[e.vx,e.vy],f=D[0],v=D[1],w=this.plot_view.xmapper.map_from_target(f),j=this.plot_view.ymapper.map_from_target(v),"screen"===this.outer_radius_units?(g=f-this.max_radius,m=f+this.max_radius,F=this.plot_view.xmapper.v_map_from_target([g,m]),x=F[0],k=F[1],y=v-this.max_radius,b=v+this.max_radius,$=this.plot_view.ymapper.v_map_from_target([y,b]),C=$[0],T=$[1]):(x=w-this.max_radius,k=w+this.max_radius,C=j-this.max_radius,T=j+this.max_radius),n=function(){var t,e,n,r;for(n=this.index.search([x,C,k,T]),r=[],t=0,e=n.length;e>t;t++)a=n[t],r.push(a[4].i);return r}.call(this),r=[],"screen"===this.outer_radius_units)for(c=this.plot_view.view_state.vx_to_sx(f),p=this.plot_view.view_state.vy_to_sy(v),M=0,E=n.length;E>M;M++)s=n[M],l=Math.pow(this.outer_radius[s],2),i=Math.pow(this.sx[s]-c,2)+Math.pow(this.sy[s]-p,2),l>=i&&r.push([s,i]);else for(N=0,O=n.length;O>N;N++)s=n[N],l=Math.pow(this.outer_radius[s],2),u=this.plot_view.xmapper.map_to_target(w),h=this.plot_view.xmapper.map_to_target(this.x[s]),d=this.plot_view.ymapper.map_to_target(j),_=this.plot_view.ymapper.map_to_target(this.y[s]),i=Math.pow(u-h,2)+Math.pow(d-_,2),l>=i&&r.push([s,i]);if(o=[],"screen"===this.inner_radius_units)for(c=this.plot_view.view_state.vx_to_sx(f),p=this.plot_view.view_state.vy_to_sy(v),S=0,P=r.length;P>S;S++)q=r[S],s=q[0],i=q[1],l=Math.pow(this.inner_radius[s],2),i>=l&&o.push([s,i]);else for(A=0,z=r.length;z>A;A++)B=r[A],s=B[0],i=B[1],l=Math.pow(this.inner_radius[s],2),u=this.plot_view.xmapper.map_to_target(w),h=this.plot_view.xmapper.map_to_target(this.x[s]),d=this.plot_view.ymapper.map_to_target(j),_=this.plot_view.ymapper.map_to_target(this.y[s]),i>=l&&o.push([s,i]);return o=t.chain(o).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value()},i.prototype.draw_legend=function(t,e,n,r,i){var o,s,a,l,c,u,h,p;return c=null!=(p=this.get_reference_point())?p:0,o=[c],u={},u[c]=(e+n)/2,h={},h[c]=(r+i)/2,l=.5*Math.min(Math.abs(n-e),Math.abs(i-r)),s={},s[c]=.4*l,a={},a[c]=.8*l,this._render(t,o,this.glyph_props,u,h,s,a)},i}(i.View),o=function(n){function r(){return l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=s,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:"gray",fill_alpha:1,line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(i.Model),{Model:o,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/arc",["underscore","renderer/properties","./glyph"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)
            }return e(n,t),n.prototype._fields=["x","y","radius","start_angle","end_angle","direction:string"],n.prototype._properties=["line"],n.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=t[0],this.sy=t[1],this.radius=this.distance_vector("x","radius","edge")},n.prototype._render=function(t,e,n,r,i,o){var s,a,l,c;if(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.radius),n.line_properties.do_stroke){for(c=[],a=0,l=e.length;l>a;a++)s=e[a],isNaN(r[s]+i[s]+o[s]+this.start_angle[s]+this.end_angle[s]+this.direction[s])||(t.beginPath(),t.arc(r[s],i[s],o[s],this.start_angle[s],this.end_angle[s],this.direction[s]),n.line_properties.set_vectorize(t,s),c.push(t.stroke()));return c}},n.prototype.draw_legend=function(t,e,n,r,i){var o,s,a,l,c,u;return a=null!=(u=this.get_reference_point())?u:0,o=[a],l={},l[a]=(e+n)/2,c={},c[a]=(r+i)/2,s={},s[a]=.4*Math.min(Math.abs(n-e),Math.abs(i-r)),this._render(t,o,this.glyph_props,l,c,s)},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{direction:"anticlock",line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/marker",["underscore","rbush","renderer/properties","./glyph"],function(t,n,r,i){var o,s,a,l;return s=function(r){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,r),i.prototype._fields=["x","y","size"],i.prototype.draw_legend=function(t,e,n,r,i){var o,s,a,l,c,u;return s=null!=(u=this.get_reference_point())?u:0,o=[s],l={},l[s]=(e+n)/2,c={},c[s]=(r+i)/2,a={},a[s]=.8*Math.min(Math.abs(n-e),Math.abs(i-r)),this._render(t,o,this.glyph_props,l,c,a)},i.prototype._set_data=function(){var e,r,i,o;for(this.max_size=t.max(this.size),this.index=n(),r=[],e=i=0,o=this.x.length;o>=0?o>i:i>o;e=o>=0?++i:--i)isNaN(this.x[e]+this.y[e])||r.push([this.x[e],this.y[e],this.x[e],this.y[e],{i:e}]);return this.index.load(r)},i.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=t[0],this.sy=t[1],t},i.prototype._mask_data=function(){var t,e,n,r,i,o,s,a,l,c,u,h,p;return t=this.plot_view.view_state.get("inner_range_horizontal"),n=t.get("start")-this.max_size,r=t.get("end")+this.max_size,h=this.plot_view.xmapper.v_map_from_target([n,r]),a=h[0],l=h[1],e=this.plot_view.view_state.get("inner_range_vertical"),i=e.get("start")-this.max_size,o=e.get("end")+this.max_size,p=this.plot_view.ymapper.v_map_from_target([i,o]),c=p[0],u=p[1],function(){var t,e,n,r;for(n=this.index.search([a,c,l,u]),r=[],t=0,e=n.length;e>t;t++)s=n[t],r.push(s[4].i);return r}.call(this)},i.prototype._hit_point=function(e){var n,r,i,o,s,a,l,c,u,h,p,d,_,f,g,m,v,y,b,w,x,k,j;for(x=[e.vx,e.vy],c=x[0],p=x[1],a=this.plot_view.view_state.vx_to_sx(c),l=this.plot_view.view_state.vy_to_sy(p),u=c-this.max_size,h=c+this.max_size,k=this.plot_view.xmapper.v_map_from_target([u,h]),g=k[0],m=k[1],d=p-this.max_size,_=p+this.max_size,j=this.plot_view.ymapper.v_map_from_target([d,_]),v=j[0],y=j[1],n=function(){var t,e,n,r;for(n=this.index.search([g,v,m,y]),r=[],t=0,e=n.length;e>t;t++)f=n[t],r.push(f[4].i);return r}.call(this),i=[],b=0,w=n.length;w>b;b++)o=n[b],s=this.size[o]/2,r=Math.abs(this.sx[o]-a)+Math.abs(this.sy[o]-l),Math.abs(this.sx[o]-a)<=s&&Math.abs(this.sy[o]-l)<=s&&i.push([o,r]);return i=t.chain(i).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value()},i.prototype._hit_rect=function(t){var e,n,r,i,o,s,a;return s=this.plot_view.xmapper.v_map_from_target([t.vx0,t.vx1]),n=s[0],r=s[1],a=this.plot_view.ymapper.v_map_from_target([t.vy0,t.vy1]),i=a[0],o=a[1],function(){var t,s,a,l;for(a=this.index.search([n,i,r,o]),l=[],t=0,s=a.length;s>t;t++)e=a[t],l.push(e[4].i);return l}.call(this)},i}(i.View),o=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(i.Model),{Model:o,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/asterisk",["underscore","renderer/properties","./marker"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=["line"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,c,u,h;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),h=[],c=0,u=e.length;u>c;c++)s=e[c],isNaN(r[s]+i[s]+o[s])||(a=o[s]/2,l=.65*a,t.beginPath(),t.moveTo(r[s],i[s]+a),t.lineTo(r[s],i[s]-a),t.moveTo(r[s]-a,i[s]),t.lineTo(r[s]+a,i[s]),t.moveTo(r[s]-l,i[s]+l),t.lineTo(r[s]+l,i[s]-l),t.moveTo(r[s]-l,i[s]-l),t.lineTo(r[s]+l,i[s]+l),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),h.push(t.stroke())):h.push(void 0));return h},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/bezier",["underscore","renderer/properties","./glyph"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=["x0","y0","x1","y1","cx0","cy0","cx1","cy1"],n.prototype._properties=["line"],n.prototype._map_data=function(){var t,e,n,r;return t=this.plot_view.map_to_screen(this.x0,this.glyph_props.x0.units,this.y0,this.glyph_props.y0.units),this.sx0=t[0],this.sy0=t[1],e=this.plot_view.map_to_screen(this.x1,this.glyph_props.x1.units,this.y1,this.glyph_props.y1.units),this.sx1=e[0],this.sy1=e[1],n=this.plot_view.map_to_screen(this.cx0,this.glyph_props.cx0.units,this.cy0,this.glyph_props.cy0.units),this.scx0=n[0],this.scy0=n[1],r=this.plot_view.map_to_screen(this.cx1,this.glyph_props.cx1.units,this.cy1,this.glyph_props.cy1.units),this.scx1=r[0],this.scy1=r[1],r},n.prototype._render=function(t,e,n){var r,i,o,s;if(n.line_properties.do_stroke){for(s=[],i=0,o=e.length;o>i;i++)r=e[i],isNaN(this.sx0[r]+this.sy0[r]+this.sx1[r]+this.sy1[r]+this.scx0[r]+this.scy0[r]+this.scx1[r]+this.scy1[r])||(t.beginPath(),t.moveTo(this.sx0[r],this.sy0[r]),t.bezierCurveTo(this.scx0[r],this.scy0[r],this.scx1[r],this.scy1[r],this.sx1[r],this.sy1[r]),n.line_properties.set_vectorize(t,r),s.push(t.stroke()));return s}},n.prototype.draw_legend=function(t,e,n,r,i){return this._generic_line_legend(t,e,n,r,i)},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/circle",["underscore","rbush","renderer/properties","./glyph"],function(t,n,r,i){var o,s,a,l;return s=function(r){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,r),i.prototype._properties=["line","fill"],i.prototype.initialize=function(t){var e;return e=this.mget("glyphspec"),null!=e.radius?this._fields=["x","y","radius"]:null!=e.size&&(this._fields=["x","y","size"]),i.__super__.initialize.call(this,t)},i.prototype._set_data=function(){var e,r,i,o;for(this.max_radius=this.size?t.max(this.size)/2:t.max(this.radius),this.index=n(),r=[],e=i=0,o=this.x.length;o>=0?o>i:i>o;e=o>=0?++i:--i)isNaN(this.x[e]+this.y[e])||r.push([this.x[e],this.y[e],this.x[e],this.y[e],{i:e}]);return this.index.load(r)},i.prototype._map_data=function(){var t,e;return e=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=e[0],this.sy=e[1],this.size?(this.radius=function(){var e,n,r,i;for(r=this.distance_vector("x","size","edge"),i=[],e=0,n=r.length;n>e;e++)t=r[e],i.push(t/2);return i}.call(this),this.radius_units=this.glyph_props.size.units):this.radius=this.distance_vector("x","radius","edge")},i.prototype._mask_data=function(){var t,e,n,r,i,o,s,a,l,c,u,h,p,d,_;return t=this.plot_view.view_state.get("inner_range_horizontal"),o=this.plot_view.view_state.get("inner_range_vertical"),"screen"===this.radius_units?(e=t.get("start")-this.max_radius,n=t.get("end")-this.max_radius,h=this.plot_view.xmapper.v_map_from_target([e,n]),a=h[0],l=h[1],r=o.get("start")-this.max_radius,i=o.get("end")-this.max_radius,p=this.plot_view.ymapper.v_map_from_target([r,i]),c=p[0],u=p[1]):(e=t.get("start"),n=t.get("end"),d=this.plot_view.xmapper.v_map_from_target([e,n]),a=d[0],l=d[1],a-=this.max_radius,l+=this.max_radius,r=o.get("start"),i=o.get("end"),_=this.plot_view.ymapper.v_map_from_target([r,i]),c=_[0],u=_[1],c-=this.max_radius,u+=this.max_radius),function(){var t,e,n,r;for(n=this.index.search([a,c,l,u]),r=[],t=0,e=n.length;e>t;t++)s=n[t],r.push(s[4].i);return r}.call(this)},i.prototype._render=function(t,e,n,r,i,o){var s,a,l,c;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.radius),c=[],a=0,l=e.length;l>a;a++)s=e[a],isNaN(r[s]+i[s]+o[s])||(t.beginPath(),t.arc(r[s],i[s],o[s],0,2*Math.PI,!1),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),c.push(t.stroke())):c.push(void 0));return c},i.prototype._hit_point=function(e){var n,r,i,o,s,a,l,c,u,h,p,d,_,f,g,m,v,y,b,w,x,k,j,C,T,M,N,S,A,E,O;if(A=[e.vx,e.vy],_=A[0],m=A[1],b=this.plot_view.xmapper.map_from_target(_),k=this.plot_view.ymapper.map_from_target(m),"screen"===this.radius_units?(f=_-this.max_radius,g=_+this.max_radius,E=this.plot_view.xmapper.v_map_from_target([f,g]),w=E[0],x=E[1],v=m-this.max_radius,y=m+this.max_radius,O=this.plot_view.ymapper.v_map_from_target([v,y]),j=O[0],C=O[1]):(w=b-this.max_radius,x=b+this.max_radius,j=k-this.max_radius,C=k+this.max_radius),n=function(){var t,e,n,r;for(n=this.index.search([w,j,x,C]),r=[],t=0,e=n.length;e>t;t++)s=n[t],r.push(s[4].i);return r}.call(this),i=[],"screen"===this.radius_units)for(l=this.plot_view.view_state.vx_to_sx(_),h=this.plot_view.view_state.vy_to_sy(m),T=0,N=n.length;N>T;T++)o=n[T],a=Math.pow(this.radius[o],2),r=Math.pow(this.sx[o]-l,2)+Math.pow(this.sy[o]-h,2),a>=r&&i.push([o,r]);else for(M=0,S=n.length;S>M;M++)o=n[M],a=Math.pow(this.radius[o],2),c=this.plot_view.xmapper.map_to_target(b),u=this.plot_view.xmapper.map_to_target(this.x[o]),p=this.plot_view.ymapper.map_to_target(k),d=this.plot_view.ymapper.map_to_target(this.y[o]),r=Math.pow(c-u,2)+Math.pow(p-d,2),a>=r&&i.push([o,r]);return i=t.chain(i).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value()},i.prototype._hit_rect=function(t){var e,n,r,i,o,s,a;return s=this.plot_view.xmapper.v_map_from_target([t.vx0,t.vx1]),n=s[0],r=s[1],a=this.plot_view.ymapper.v_map_from_target([t.vy0,t.vy1]),i=a[0],o=a[1],function(){var t,s,a,l;for(a=this.index.search([n,i,r,o]),l=[],t=0,s=a.length;s>t;t++)e=a[t],l.push(e[4].i);return l}.call(this)},i.prototype.draw_legend=function(t,e,n,r,i){var o,s,a,l,c,u;return a=null!=(u=this.get_reference_point())?u:0,o=[a],l={},l[a]=(e+n)/2,c={},c[a]=(r+i)/2,s={},s[a]=.4*Math.min(Math.abs(n-e),Math.abs(i-r)),this._render(t,o,this.glyph_props,l,c,s)},i}(i.View),o=function(n){function r(){return l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=s,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{radius_units:"data",size_units:"screen",fill_color:"gray",fill_alpha:1,line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(i.Model),{Model:o,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/circle_x",["underscore","renderer/properties","./marker"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=["line","fill"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,c,u;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),u=[],l=0,c=e.length;c>l;l++)s=e[l],isNaN(r[s]+i[s]+o[s])||(t.beginPath(),a=o[s]/2,t.arc(r[s],i[s],a,0,2*Math.PI,!1),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),t.moveTo(r[s]-a,i[s]+a),t.lineTo(r[s]+a,i[s]-a),t.moveTo(r[s]-a,i[s]-a),t.lineTo(r[s]+a,i[s]+a),u.push(t.stroke())):u.push(void 0));return u},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:"gray",fill_alpha:1,line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/circle_cross",["underscore","renderer/properties","./marker"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=["line","fill"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,c,u;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),u=[],l=0,c=e.length;c>l;l++)s=e[l],isNaN(r[s]+i[s]+o[s])||(t.beginPath(),a=o[s]/2,t.arc(r[s],i[s],a,0,2*Math.PI,!1),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),t.moveTo(r[s],i[s]+a),t.lineTo(r[s],i[s]-a),t.moveTo(r[s]-a,i[s]),t.lineTo(r[s]+a,i[s]),u.push(t.stroke())):u.push(void 0));return u},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:"gray",fill_alpha:1,line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/diamond",["underscore","renderer/properties","./marker"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=["line","fill"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,c,u;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),u=[],l=0,c=e.length;c>l;l++)s=e[l],isNaN(r[s]+i[s]+o[s])||(a=o[s]/2,t.beginPath(),t.moveTo(r[s],i[s]+a),t.lineTo(r[s]+a,i[s]),t.lineTo(r[s],i[s]-a),t.lineTo(r[s]-a,i[s]),t.closePath(),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),u.push(t.stroke())):u.push(void 0));return u},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:"gray",fill_alpha:1,line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/diamond_cross",["underscore","renderer/properties","./marker"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=["line","fill"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,c,u;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),u=[],l=0,c=e.length;c>l;l++)s=e[l],isNaN(r[s]+i[s]+o[s])||(a=o[s]/2,t.beginPath(),t.moveTo(r[s],i[s]+a),t.lineTo(r[s]+a,i[s]),t.lineTo(r[s],i[s]-a),t.lineTo(r[s]-a,i[s]),t.closePath(),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),t.moveTo(r[s],i[s]+a),t.lineTo(r[s],i[s]-a),t.moveTo(r[s]-a,i[s]),t.lineTo(r[s]+a,i[s]),u.push(t.stroke())):u.push(void 0));return u},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:"gray",fill_alpha:1,line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){n("palettes/colorbrewer",[],function(){var t;return t={YlGn:{3:[16252089,11394446,3253076],4:[16777164,12773017,7915129,2327619],5:[16777164,12773017,7915129,3253076,26679],6:[16777164,14282915,11394446,7915129,3253076,26679],7:[16777164,14282915,11394446,7915129,4303709,2327619,23090],8:[16777189,16252089,14282915,11394446,7915129,4303709,2327619,23090],9:[16777189,16252089,14282915,11394446,7915129,4303709,2327619,26679,17705]},YlGnBu:{3:[15595697,8375739,2916280],4:[16777164,10607284,4306628,2252456],5:[16777164,10607284,4306628,2916280,2438292],6:[16777164,13101492,8375739,4306628,2916280,2438292],7:[16777164,13101492,8375739,4306628,1937856,2252456,797828],8:[16777177,15595697,13101492,8375739,4306628,1937856,2252456,797828],9:[16777177,15595697,13101492,8375739,4306628,1937856,2252456,2438292,531800]},GnBu:{3:[14742491,11066805,4432586],4:[15792616,12248252,8113348,2854078],5:[15792616,12248252,8113348,4432586,551084],6:[15792616,13429701,11066805,8113348,4432586,551084],7:[15792616,13429701,11066805,8113348,5157843,2854078,546974],8:[16252144,14742491,13429701,11066805,8113348,5157843,2854078,546974],9:[16252144,14742491,13429701,11066805,8113348,5157843,2854078,551084,540801]},BuGn:{3:[15070713,10082505,2925151],4:[15595771,11723490,6734500,2329413],5:[15595771,11723490,6734500,2925151,27948],6:[15595771,13429990,10082505,6734500,2925151,27948],7:[15595771,13429990,10082505,6734500,4304502,2329413,22564],8:[16252157,15070713,13429990,10082505,6734500,4304502,2329413,22564],9:[16252157,15070713,13429990,10082505,6734500,4304502,2329413,27948,17435]},PuBuGn:{3:[15524592,10927579,1872025],4:[16183287,12437985,6793679,164234],5:[16183287,12437985,6793679,1872025,93273],6:[16183287,13685222,10927579,6793679,1872025,93273],7:[16183287,13685222,10927579,6793679,3576e3,164234,91216],8:[16775163,15524592,13685222,10927579,6793679,3576e3,164234,91216],9:[16775163,15524592,13685222,10927579,6793679,3576e3,164234,93273,83510]},PuBu:{3:[15525874,10927579,2854078],4:[15855350,12437985,7645647,356528],5:[15855350,12437985,7645647,2854078,285325],6:[15855350,13685222,10927579,7645647,2854078,285325],7:[15855350,13685222,10927579,7645647,3576e3,356528,216699],8:[16775163,15525874,13685222,10927579,7645647,3576e3,356528,216699],9:[16775163,15525874,13685222,10927579,7645647,3576e3,356528,285325,145496]},BuPu:{3:[14740724,10403034,8935079],4:[15595771,11783651,9213638,8929693],5:[15595771,11783651,9213638,8935079,8458108],6:[15595771,12571622,10403034,9213638,8935079,8458108],7:[15595771,12571622,10403034,9213638,9202609,8929693,7209323],8:[16252157,14740724,12571622,10403034,9213638,9202609,8929693,7209323],9:[16252157,14740724,12571622,10403034,9213638,9202609,8929693,8458108,5046347]},RdPu:{3:[16638173,16424885,12917642],4:[16706530,16495801,16214177,11403646],5:[16706530,16495801,16214177,12917642,7995767],6:[16706530,16565696,16424885,16214177,12917642,7995767],7:[16706530,16565696,16424885,16214177,14496919,11403646,7995767],8:[16775155,16638173,16565696,16424885,16214177,14496919,11403646,7995767],9:[16775155,16638173,16565696,16424885,16214177,14496919,11403646,7995767,4784234]},PuRd:{3:[15196655,13210823,14490743],4:[15855350,14136792,14640560,13505110],5:[15855350,14136792,14640560,14490743,9961539],6:[15855350,13941210,13210823,14640560,14490743,9961539],7:[15855350,13941210,13210823,14640560,15149450,13505110,9502783],8:[16250105,15196655,13941210,13210823,14640560,15149450,13505110,9502783],9:[16250105,15196655,13941210,13210823,14640560,15149450,13505110,9961539,6750239]},OrRd:{3:[16705736,16628612,14895667],4:[16707801,16632970,16551257,14102559],5:[16707801,16632970,16551257,14895667,11730944],6:[16707801,16635038,16628612,16551257,14895667,11730944],7:[16707801,16635038,16628612,16551257,15689032,14102559,10027008],8:[16775148,16705736,16635038,16628612,16551257,15689032,14102559,10027008],9:[16775148,16705736,16635038,16628612,16551257,15689032,14102559,11730944,8323072]},YlOrRd:{3:[16772512,16691788,15743776],4:[16777138,16698460,16616764,14883356],5:[16777138,16698460,16616764,15743776,12386342],6:[16777138,16701814,16691788,16616764,15743776,12386342],7:[16777138,16701814,16691788,16616764,16535082,14883356,11599910],8:[16777164,16772512,16701814,16691788,16616764,16535082,14883356,11599910],9:[16777164,16772512,16701814,16691788,16616764,16535082,14883356,12386342,8388646]},YlOrBr:{3:[16775100,16696399,14245646],4:[16777172,16701838,16685353,13388802],5:[16777172,16701838,16685353,14245646,10040324],6:[16777172,16704401,16696399,16685353,14245646,10040324],7:[16777172,16704401,16696399,16685353,15495188,13388802,9186564],8:[16777189,16775100,16704401,16696399,16685353,15495188,13388802,9186564],9:[16777189,16775100,16704401,16696399,16685353,15495188,13388802,10040324,6694150]},Purples:{3:[15724021,12369372,7695281],4:[15921399,13355490,10394312,6967715],5:[15921399,13355490,10394312,7695281,5515151],6:[15921399,14342891,12369372,10394312,7695281,5515151],7:[15921399,14342891,12369372,10394312,8420794,6967715,4854918],8:[16579581,15724021,14342891,12369372,10394312,8420794,6967715,4854918],9:[16579581,15724021,14342891,12369372,10394312,8420794,6967715,5515151,4128893]},Blues:{3:[14609399,10406625,3244733],4:[15725567,12441575,7057110,2191797],5:[15725567,12441575,7057110,3244733,545180],6:[15725567,13032431,10406625,7057110,3244733,545180],7:[15725567,13032431,10406625,7057110,4362950,2191797,542100],8:[16251903,14609399,13032431,10406625,7057110,4362950,2191797,542100],9:[16251903,14609399,13032431,10406625,7057110,4362950,2191797,545180,536683]},Greens:{3:[15070688,10607003,3253076],4:[15595753,12248243,7652470,2329413],5:[15595753,12248243,7652470,3253076,27948],6:[15595753,13101504,10607003,7652470,3253076,27948],7:[15595753,13101504,10607003,7652470,4303709,2329413,23090],8:[16252149,15070688,13101504,10607003,7652470,4303709,2329413,23090],9:[16252149,15070688,13101504,10607003,7652470,4303709,2329413,27948,17435]},Oranges:{3:[16705230,16625259,15095053],4:[16707038,16629381,16616764,14239489],5:[16707038,16629381,16616764,15095053,10892803],6:[16707038,16634018,16625259,16616764,15095053,10892803],7:[16707038,16634018,16625259,16616764,15821075,14239745,9186564],8:[16774635,16705230,16634018,16625259,16616764,15821075,14239745,9186564],9:[16774635,16705230,16634018,16625259,16616764,15821075,14239745,10892803,8333060]},Reds:{3:[16703698,16552562,14560550],4:[16704985,16559761,16476746,13309981],5:[16704985,16559761,16476746,14560550,10817301],6:[16704985,16563105,16552562,16476746,14560550,10817301],7:[16704985,16563105,16552562,16476746,15678252,13309981,10027021],8:[16774640,16703698,16563105,16552562,16476746,15678252,13309981,10027021],9:[16774640,16703698,16563105,16552562,16476746,15678252,13309981,10817301,6750221]},Greys:{3:[15790320,12434877,6513507],4:[16250871,13421772,9868950,5395026],5:[16250871,13421772,9868950,6513507,2434341],6:[16250871,14277081,12434877,9868950,6513507,2434341],7:[16250871,14277081,12434877,9868950,7566195,5395026,2434341],8:[16777215,15790320,14277081,12434877,9868950,7566195,5395026,2434341],9:[16777215,15790320,14277081,12434877,9868950,7566195,5395026,2434341,0]},PuOr:{3:[15835968,16250871,10063555],4:[15098113,16627811,11709394,6175897],5:[15098113,16627811,16250871,11709394,6175897],6:[11753478,15835968,16703670,14211819,10063555,5515144],7:[11753478,15835968,16703670,16250871,14211819,10063555,5515144],8:[11753478,14713364,16627811,16703670,14211819,11709394,8418220,5515144],9:[11753478,14713364,16627811,16703670,16250871,14211819,11709394,8418220,5515144],10:[8338184,11753478,14713364,16627811,16703670,14211819,11709394,8418220,5515144,2949195],11:[8338184,11753478,14713364,16627811,16703670,16250871,14211819,11709394,8418220,5515144,2949195]},BrBG:{3:[14201701,16119285,5944492],4:[10903834,14664317,8441281,99697],5:[10903834,14664317,16119285,8441281,99697],6:[9195786,14201701,16181443,13101797,5944492,91742],7:[9195786,14201701,16181443,16119285,13101797,5944492,91742],8:[9195786,12550445,14664317,16181443,13101797,8441281,3512207,91742],9:[9195786,12550445,14664317,16181443,16119285,13101797,8441281,3512207,91742],10:[5517317,9195786,12550445,14664317,16181443,13101797,8441281,3512207,91742,15408],11:[5517317,9195786,12550445,14664317,16181443,16119285,13101797,8441281,3512207,91742,15408]},PRGn:{3:[11505091,16250871,8372091],4:[8073876,12756431,10935200,34871],5:[8073876,12756431,16250871,10935200,34871],6:[7744131,11505091,15193320,14282963,8372091,1800247],7:[7744131,11505091,15193320,16250871,14282963,8372091,1800247],8:[7744131,10055851,12756431,15193320,14282963,10935200,5942881,1800247],9:[7744131,10055851,12756431,15193320,16250871,14282963,10935200,5942881,1800247],10:[4194379,7744131,10055851,12756431,15193320,14282963,10935200,5942881,1800247,17435],11:[4194379,7744131,10055851,12756431,15193320,16250871,14282963,10935200,5942881,1800247,17435]},PiYG:{3:[15311817,16250871,10606442],4:[13638795,15840986,12116358,5090342],5:[13638795,15840986,16250871,12116358,5090342],6:[12917629,15311817,16638191,15136208,10606442,5083681],7:[12917629,15311817,16638191,16250871,15136208,10606442,5083681],8:[12917629,14579630,15840986,16638191,15136208,12116358,8371265,5083681],9:[12917629,14579630,15840986,16638191,16250871,15136208,12116358,8371265,5083681],10:[9306450,12917629,14579630,15840986,16638191,15136208,12116358,8371265,5083681,2581529],11:[9306450,12917629,14579630,15840986,16638191,16250871,15136208,12116358,8371265,5083681,2581529]},RdBu:{3:[15698530,16250871,6793679],4:[13238304,16033154,9618910,356784],5:[13238304,16033154,16250871,9618910,356784],6:[11671595,15698530,16636871,13755888,6793679,2188972],7:[11671595,15698530,16636871,16250871,13755888,6793679,2188972],8:[11671595,14049357,16033154,16636871,13755888,9618910,4428739,2188972],9:[11671595,14049357,16033154,16636871,16250871,13755888,9618910,4428739,2188972],10:[6750239,11671595,14049357,16033154,16636871,13755888,9618910,4428739,2188972,340065],11:[6750239,11671595,14049357,16033154,16636871,16250871,13755888,9618910,4428739,2188972,340065]},RdGy:{3:[15698530,16777215,10066329],4:[13238304,16033154,12237498,4210752],5:[13238304,16033154,16777215,12237498,4210752],6:[11671595,15698530,16636871,14737632,10066329,5066061],7:[11671595,15698530,16636871,16777215,14737632,10066329,5066061],8:[11671595,14049357,16033154,16636871,14737632,12237498,8882055,5066061],9:[11671595,14049357,16033154,16636871,16777215,14737632,12237498,8882055,5066061],10:[6750239,11671595,14049357,16033154,16636871,14737632,12237498,8882055,5066061,1710618],11:[6750239,11671595,14049357,16033154,16636871,16777215,14737632,12237498,8882055,5066061,1710618]},RdYlBu:{3:[16551257,16777151,9551835],4:[14096668,16625249,11262441,2915254],5:[14096668,16625249,16777151,11262441,2915254],6:[14102567,16551257,16703632,14742520,9551835,4552116],7:[14102567,16551257,16703632,16777151,14742520,9551835,4552116],8:[14102567,16018755,16625249,16703632,14742520,11262441,7646673,4552116],9:[14102567,16018755,16625249,16703632,16777151,14742520,11262441,7646673,4552116],10:[10813478,14102567,16018755,16625249,16703632,14742520,11262441,7646673,4552116,3225237],11:[10813478,14102567,16018755,16625249,16703632,16777151,14742520,11262441,7646673,4552116,3225237]},Spectral:{3:[16551257,16777151,10081684],4:[14096668,16625249,11263396,2851770],5:[14096668,16625249,16777151,11263396,2851770],6:[13975119,16551257,16703627,15136152,10081684,3311805],7:[13975119,16551257,16703627,16777151,15136152,10081684,3311805],8:[13975119,16018755,16625249,16703627,15136152,11263396,6734501,3311805],9:[13975119,16018755,16625249,16703627,16777151,15136152,11263396,6734501,3311805],10:[10355010,13975119,16018755,16625249,16703627,15136152,11263396,6734501,3311805,6180770],11:[10355010,13975119,16018755,16625249,16703627,16777151,15136152,11263396,6734501,3311805,6180770]},RdYlGn:{3:[16551257,16777151,9555808],4:[14096668,16625249,10934634,1742401],5:[14096668,16625249,16777151,10934634,1742401],6:[14102567,16551257,16703627,14282635,9555808,1742928],7:[14102567,16551257,16703627,16777151,14282635,9555808,1742928],8:[14102567,16018755,16625249,16703627,14282635,10934634,6733155,1742928],9:[14102567,16018755,16625249,16703627,16777151,14282635,10934634,6733155,1742928],10:[10813478,14102567,16018755,16625249,16703627,14282635,10934634,6733155,1742928,26679],11:[10813478,14102567,16018755,16625249,16703627,16777151,14282635,10934634,6733155,1742928,26679]}}})}.call(this),function(){n("palettes/palettes",["./colorbrewer"],function(t){var e,n,r,i,o;e={};for(r in t){n=t[r];for(i in n)o=n[i],e[""+r+"-"+i]=o.reverse()}return{all_palettes:e}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/image",["underscore","renderer/properties","mapper/color/linear_color_mapper","palettes/palettes","./glyph"],function(t,n,r,i,o){var s,a,l,c,u;return l=i.all_palettes,a=function(n){function i(){return c=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype._properties=[],i.prototype.setup_server_data=function(){var e,n;return n=this.mget_obj("server_data_source"),e=t.extend({},this.mget_obj("data_source").get("data"),n.get("data")),this.mget_obj("data_source").set("data",e),this.set_data(!1),n.listen_for_heatmap_updates(this.mget_obj("data_source"),this.plot_view.x_range,this.plot_view.y_range,this.plot_view.view_state.get("inner_range_horizontal"),this.plot_view.view_state.get("inner_range_vertical"))
            },i.prototype.initialize=function(t){var e;return e=this.mget("glyphspec"),this._fields=null!=e.rows?["image:array","rows","cols","x","y","dw","dh","palette:string"]:["image:array","x","y","dw","dh","palette:string"],i.__super__.initialize.call(this,t)},i.prototype._set_data=function(e){var n,i,o,s,a,c,u,h,p,d,_;for(this.data=e,(null==this.image_data||this.image_data.length!==this.image.length)&&(this.image_data=new Array(this.image.length)),(null==this.width||this.width.length!==this.image.length)&&(this.width=new Array(this.image.length)),(null==this.height||this.height.length!==this.image.length)&&(this.height=new Array(this.image.length)),_=[],c=p=0,d=this.image.length;d>=0?d>p:p>d;c=d>=0?++p:--p)null!=this.rows?(this.height[c]=this.rows[c],this.width[c]=this.cols[c]):(this.height[c]=this.image[c].length,this.width[c]=this.image[c][0].length),o=document.createElement("canvas"),o.width=this.width[c],o.height=this.height[c],a=o.getContext("2d"),u=a.getImageData(0,0,this.width[c],this.height[c]),s=new r.Model({palette:l[this.palette[c]]}),h=null!=this.rows?this.image[c]:t.flatten(this.image[c]),n=s.v_map_screen(h),i=new Uint8ClampedArray(n),u.data.set(i),a.putImageData(u,0,0),_.push(this.image_data[c]=o);return _},i.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=t[0],this.sy=t[1],this.sw=this.distance_vector("x","dw","edge",this.mget("glyphspec").dilate),this.sh=this.distance_vector("y","dh","edge",this.mget("glyphspec").dilate)},i.prototype._render=function(t,e){var n,r,i,o,s;for(r=t.getImageSmoothingEnabled(),t.setImageSmoothingEnabled(!1),o=0,s=e.length;s>o;o++)n=e[o],null!=this.image_data[n]&&(isNaN(this.sx[n]+this.sy[n]+this.sw[n]+this.sh[n])||(i=this.sy[n],t.translate(0,i),t.scale(1,-1),t.translate(0,-i),t.drawImage(this.image_data[n],0|this.sx[n],0|this.sy[n],this.sw[n],this.sh[n]),t.translate(0,i),t.scale(1,-1),t.translate(0,-i)));return t.setImageSmoothingEnabled(r)},i}(o.View),s=function(n){function r(){return u=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=a,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{level:"underlay",dilate:!1})},r}(o.Model),{Model:s,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/image_rgba",["underscore","renderer/properties","./glyph"],function(t,n,r){var i,o,s,a,l;return s=n.glyph_properties,o=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype._properties=[],r.prototype.initialize=function(t){var e;return e=this.mget("glyphspec"),this._fields=null!=e.rows?["image:array","rows","cols","x","y","dw","dh"]:["image:array","x","y","dw","dh"],r.__super__.initialize.call(this,t)},r.prototype._set_data=function(){var e,n,r,i,o,s,a,l,c,u,h,p,d,_;for((null==this.image_data||this.image_data.length!==this.image.length)&&(this.image_data=new Array(this.image.length)),(null==this.width||this.width.length!==this.image.length)&&(this.width=new Array(this.image.length)),(null==this.height||this.height.length!==this.image.length)&&(this.height=new Array(this.image.length)),_=[],a=u=0,p=this.image.length;p>=0?p>u:u>p;a=p>=0?++u:--u){if(null!=this.rows?(this.height[a]=this.rows[a],this.width[a]=this.cols[a]):(this.height[a]=this.image[a].length,this.width[a]=this.image[a][0].length),r=document.createElement("canvas"),r.width=this.width[a],r.height=this.height[a],o=r.getContext("2d"),l=o.getImageData(0,0,this.width[a],this.height[a]),null!=this.rows)l.data.set(new Uint8ClampedArray(this.image[a]));else{for(s=t.flatten(this.image[a]),e=new ArrayBuffer(4*s.length),i=new Uint32Array(e),c=h=0,d=s.length;d>=0?d>h:h>d;c=d>=0?++h:--h)i[c]=s[c];n=new Uint8ClampedArray(e),l.data.set(n)}o.putImageData(l,0,0),_.push(this.image_data[a]=r)}return _},r.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=t[0],this.sy=t[1],this.sw=this.distance_vector("x","dw","edge",this.mget("glyphspec").dilate),this.sh=this.distance_vector("y","dh","edge",this.mget("glyphspec").dilate)},r.prototype._render=function(t,e){var n,r,i,o,s;for(r=t.getImageSmoothingEnabled(),t.setImageSmoothingEnabled(!1),o=0,s=e.length;s>o;o++)n=e[o],isNaN(this.sx[n]+this.sy[n]+this.sw[n]+this.sh[n])||(i=this.sy[n],t.translate(0,i),t.scale(1,-1),t.translate(0,-i),t.drawImage(this.image_data[n],0|this.sx[n],0|this.sy[n],this.sw[n],this.sh[n]),t.translate(0,i),t.scale(1,-1),t.translate(0,-i));return t.setImageSmoothingEnabled(r)},r}(r.View),i=function(n){function r(){return l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{level:"underlay",dilate:!1})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/image_uri",["underscore","renderer/properties","./glyph"],function(t,n,r){var i,o,s,a,l;return s=n.glyph_properties,o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=["url:string","x","y","angle"],n.prototype._properties=[],n.prototype._set_data=function(t){var e;return this.data=t,this.image=function(){var t,n,r,i;for(r=this.url,i=[],t=0,n=r.length;n>t;t++)e=r[t],i.push(null);return i}.call(this),this.need_load=function(){var t,n,r,i;for(r=this.url,i=[],t=0,n=r.length;n>t;t++)e=r[t],i.push(!0);return i}.call(this),this.loaded=function(){var t,n,r,i;for(r=this.url,i=[],t=0,n=r.length;n>t;t++)e=r[t],i.push(!1);return i}.call(this)},n.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=t[0],this.sy=t[1],t},n.prototype._render=function(t,e){var n,r,i,o,s,a=this;for(s=[],i=0,o=e.length;o>i;i++)n=e[i],isNaN(this.sx[n]+this.sy[n]+this.angle[n])||(this.need_load[n]?(r=new Image,r.onload=function(e,n){return function(){return a.loaded[n]=!0,a.image[n]=e,t.save(),t.beginPath(),t.rect(vs.get("border_left")+1,vs.get("border_top")+1,vs.get("inner_width")-2,vs.get("inner_height")-2),t.clip(),a._render_image(t,vs,n,e),t.restore()}}(r,n),r.src=this.url[n],s.push(this.need_load[n]=!1)):this.loaded[n]?s.push(this._render_image(t,vs,n,this.image[n])):s.push(void 0));return s},n.prototype._render_image=function(t,e,n,r){return this.angle[n]?(t.translate(this.sx[n],this.sy[n]),t.rotate(this.angle[n]),t.drawImage(r,0,0),t.rotate(-this.angle[n]),t.translate(-this.sx[n],-this.sy[n])):t.drawImage(r,this.sx[n],this.sy[n])},n}(r.View),i=function(n){function r(){return l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{level:"underlay"})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/inverted_triangle",["underscore","renderer/properties","./marker"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=["x","y","size"],n.prototype._properties=["line","fill"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,c,u,h,p;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),p=[],u=0,h=e.length;h>u;u++)l=e[u],isNaN(r[l]+i[l]+o[l])||(s=o[l]*Math.sqrt(3)/6,c=o[l]/2,a=o[l]*Math.sqrt(3)/2,t.beginPath(),t.moveTo(r[l]-c,i[l]-s),t.lineTo(r[l]+c,i[l]-s),t.lineTo(r[l],i[l]-s+a),t.closePath(),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,l),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,l),p.push(t.stroke())):p.push(void 0));return p},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:"gray",fill_alpha:1,line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/line",["underscore","renderer/properties","./glyph"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.setup_server_data=function(){var t,e;return e=this.mget_obj("server_data_source"),this.server_source=e,t="x","x"===t?e.listen_for_line1d_updates(this.mget_obj("data_source"),this.plot_view.x_range,this.plot_view.view_state.get("inner_range_horizontal"),this.glyph_props.y.field,this.glyph_props.x.field,[this.glyph_props.y.field]):void 0},n.prototype._fields=["x","y"],n.prototype._properties=["line"],n.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=t[0],this.sy=t[1],t},n.prototype._render=function(t,e,n){var r,i,o,s;for(r=!1,n.line_properties.set(t,n),o=0,s=e.length;s>o;o++)i=e[o],isNaN(this.sx[i]+this.sy[i])&&r?(t.stroke(),t.beginPath(),r=!1):r?t.lineTo(this.sx[i],this.sy[i]):(t.beginPath(),t.moveTo(this.sx[i],this.sy[i]),r=!0);return r?t.stroke():void 0},n.prototype.draw_legend=function(t,e,n,r,i){return this._generic_line_legend(t,e,n,r,i)},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/multi_line",["underscore","renderer/properties","./glyph"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=["xs","ys"],n.prototype._properties=["line"],n.prototype._map_data=function(){return null},n.prototype._render=function(t,e,n){var r,i,o,s,a,l,c,u,h,p,d,_;for(_=[],c=0,h=e.length;h>c;c++){for(r=e[c],a=this.xs[r],l=this.ys[r],p=this.plot_view.map_to_screen(a,this.glyph_props.xs.units,l,this.glyph_props.ys.units),o=p[0],s=p[1],n.line_properties.set_vectorize(t,r),i=u=0,d=o.length;d>=0?d>u:u>d;i=d>=0?++u:--u)0!==i?isNaN(o[i])||isNaN(s[i])?(t.stroke(),t.beginPath()):t.lineTo(o[i],s[i]):(t.beginPath(),t.moveTo(o[i],s[i]));_.push(t.stroke())}return _},n.prototype.draw_legend=function(t,e,n,r,i){return this._generic_line_legend(t,e,n,r,i)},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/oval",["underscore","renderer/properties","./glyph"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=["x","y","width","height","angle"],n.prototype._properties=["line","fill"],n.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=t[0],this.sy=t[1],this.sw=this.distance_vector("x","width","center"),this.sh=this.distance_vector("y","height","center")},n.prototype._render=function(t,e,n,r,i,o,s){var a,l,c,u;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.sw),null==s&&(s=this.sh),u=[],l=0,c=e.length;c>l;l++)a=e[l],isNaN(r[a]+i[a]+o[a]+s[a]+this.angle[a])||(t.translate(r[a],i[a]),t.rotate(this.angle[a]),t.beginPath(),t.moveTo(0,-s[a]/2),t.bezierCurveTo(o[a]/2,-s[a]/2,o[a]/2,s[a]/2,0,s[a]/2),t.bezierCurveTo(-o[a]/2,s[a]/2,-o[a]/2,-s[a]/2,0,-s[a]/2),t.closePath(),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,a),t.fill()),n.line_properties.do_stroke&&(n.line_properties.set_vectorize(t,a),t.stroke()),t.rotate(-this.angle[a]),u.push(t.translate(-r[a],-i[a])));return u},n.prototype.draw_legend=function(t,e,n,r,i){var o,s,a,l,c,u,h,p,d;return a=null!=(d=this.get_reference_point())?d:0,s=[a],h={},h[a]=(e+n)/2,p={},p[a]=(r+i)/2,l=this.sw[a]/this.sh[a],o=.8*Math.min(Math.abs(n-e),Math.abs(i-r)),u={},c={},l>1?(u[a]=o,c[a]=o/l):(u[a]=o*l,c[a]=o),this._render(t,s,this.glyph_props,h,p,u,c)},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:"gray",fill_alpha:1,line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0,angle:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/patch",["underscore","renderer/properties","./glyph"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=["x","y"],n.prototype._properties=["line","fill"],n.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=t[0],this.sy=t[1],t},n.prototype._render=function(t,e,n){var r,i,o,s,a;if(n.fill_properties.do_fill){for(n.fill_properties.set(t,n),i=0,s=e.length;s>i;i++)r=e[i],0!==r?isNaN(this.sx[r]+this.sy[r])?(t.closePath(),t.fill(),t.beginPath()):t.lineTo(this.sx[r],this.sy[r]):(t.beginPath(),t.moveTo(this.sx[r],this.sy[r]));t.closePath(),t.fill()}if(n.line_properties.do_stroke){for(n.line_properties.set(t,n),o=0,a=e.length;a>o;o++)r=e[o],0!==r?isNaN(this.sx[r]+this.sy[r])?(t.closePath(),t.stroke(),t.beginPath()):t.lineTo(this.sx[r],this.sy[r]):(t.beginPath(),t.moveTo(this.sx[r],this.sy[r]));return t.closePath(),t.stroke()}},n.prototype.draw_legend=function(t,e,n,r,i){return this._generic_area_legend(t,e,n,r,i)},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:"gray",fill_alpha:1,line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/patches",["underscore","renderer/properties","./glyph"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=["xs","ys"],n.prototype._properties=["line","fill"],n.prototype._map_data=function(){return null},n.prototype._render=function(t,e,n){var r,i,o,s,a,l,c,u,h,p,d,_;for(t=this.plot_view.ctx,_=[],a=0,u=e.length;u>a;a++){if(r=e[a],h=this.plot_view.map_to_screen(this.xs[r],n.xs.units,this.ys[r],n.ys.units),o=h[0],s=h[1],n.fill_properties.do_fill){for(n.fill_properties.set_vectorize(t,r),i=l=0,p=o.length;p>=0?p>l:l>p;i=p>=0?++l:--l)0!==i?isNaN(o[i]+s[i])?(t.closePath(),t.fill(),t.beginPath()):t.lineTo(o[i],s[i]):(t.beginPath(),t.moveTo(o[i],s[i]));t.closePath(),t.fill()}if(n.line_properties.do_stroke){for(n.line_properties.set_vectorize(t,r),i=c=0,d=o.length;d>=0?d>c:c>d;i=d>=0?++c:--c)0!==i?isNaN(o[i]+s[i])?(t.closePath(),t.stroke(),t.beginPath()):t.lineTo(o[i],s[i]):(t.beginPath(),t.moveTo(o[i],s[i]));t.closePath(),_.push(t.stroke())}else _.push(void 0)}return _},n.prototype.draw_legend=function(t,e,n,r,i){return this._generic_area_legend(t,e,n,r,i)},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:"gray",fill_alpha:1,line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/cross",["underscore","renderer/properties","./marker"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=["line"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,c,u;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),u=[],l=0,c=e.length;c>l;l++)s=e[l],isNaN(r[s]+i[s]+o[s])||(a=o[s]/2,t.beginPath(),t.moveTo(r[s],i[s]+a),t.lineTo(r[s],i[s]-a),t.moveTo(r[s]-a,i[s]),t.lineTo(r[s]+a,i[s]),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),u.push(t.stroke())):u.push(void 0));return u},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/quad",["underscore","rbush","renderer/properties","./glyph"],function(t,n,r,i){var o,s,a,l;return s=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=["right","left","bottom","top"],n.prototype._properties=["line","fill"],n.prototype._map_data=function(){var t,e;return t=this.plot_view.map_to_screen(this.left,this.glyph_props.left.units,this.top,this.glyph_props.top.units),this.sx0=t[0],this.sy0=t[1],e=this.plot_view.map_to_screen(this.right,this.glyph_props.right.units,this.bottom,this.glyph_props.bottom.units),this.sx1=e[0],this.sy1=e[1],e},n.prototype._render=function(t,e,n,r,i,o,s){var a,l,c,u;for(null==r&&(r=this.sx0),null==i&&(i=this.sx1),null==o&&(o=this.sy0),null==s&&(s=this.sy1),u=[],l=0,c=e.length;c>l;l++)a=e[l],isNaN(r[a]+o[a]+i[a]+s[a])||(n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,a),t.fillRect(r[a],o[a],i[a]-r[a],s[a]-o[a])),n.line_properties.do_stroke?(t.beginPath(),t.rect(r[a],o[a],i[a]-r[a],s[a]-o[a]),n.line_properties.set_vectorize(t,a),u.push(t.stroke())):u.push(void 0));return u},n.prototype._hit_point=function(t){var e,n,r,i,o,s,a,l,c;for(l=[t.vx,t.vy],o=l[0],s=l[1],r=this.plot_view.view_state.vx_to_sx(o),i=this.plot_view.view_state.vy_to_sy(s),e=[],n=a=0,c=this.sx0.length;c>=0?c>a:a>c;n=c>=0?++a:--a)r>=this.sx0[n]&&r<=this.sx1[n]&&i>=this.sy0[n]&&i<this.sy1[n]&&e.push(n);return e},n.prototype.draw_legend=function(t,e,n,r,i){return this._generic_area_legend(t,e,n,r,i)},n}(i.View),o=function(n){function r(){return l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=s,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:"gray",fill_alpha:1,line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(i.Model),{Model:o,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/quadratic",["underscore","renderer/properties","./glyph"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=["x0","y0","x1","y1","cx","cy"],n.prototype._properties=["line"],n.prototype._map_data=function(){var t,e,n;return t=this.plot_view.map_to_screen(this.x0,this.glyph_props.x0.units,this.y0,this.glyph_props.y0.units),this.sx0=t[0],this.sy0=t[1],e=this.plot_view.map_to_screen(this.x1,this.glyph_props.x1.units,this.y1,this.glyph_props.y1.units),this.sx1=e[0],this.sy1=e[1],n=this.plot_view.map_to_screen(this.cx,this.glyph_props.cx.units,this.cy,this.glyph_props.cy.units),this.scx=n[0],this.scy=n[1],n},n.prototype._render=function(t,e,n){var r,i,o,s;if(n.line_properties.do_stroke){for(s=[],i=0,o=e.length;o>i;i++)r=e[i],isNaN(this.sx0[r]+this.sy0[r]+this.sx1[r]+this.sy1[r]+this.scx[r]+this.scy[r])||(t.beginPath(),t.moveTo(this.sx0[r],this.sy0[r]),t.quadraticCurveTo(this.scx[r],this.scy[r],this.sx1[r],this.sy1[r]),n.line_properties.set_vectorize(t,r),s.push(t.stroke()));return s}},n.prototype.draw_legend=function(t,e,n,r,i){return this._generic_line_legend(t,e,n,r,i)},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/ray",["underscore","renderer/properties","./glyph"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=["x","y","angle","length"],n.prototype._properties=["line"],n.prototype._map_data=function(){var t,e,n,r,i,o,s,a;for(o=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=o[0],this.sy=o[1],r=this.plot_view.view_state.get("width"),t=this.plot_view.view_state.get("height"),n=2*(r+t),a=[],e=i=0,s=this.length.length;s>=0?s>i:i>s;e=s>=0?++i:--i)0===this.length[e]?a.push(this.length[e]=n):a.push(void 0);return a},n.prototype._render=function(t,e,n){var r,i,o,s;if(n.line_properties.do_stroke){for(s=[],i=0,o=e.length;o>i;i++)r=e[i],isNaN(this.sx[r]+this.sy[r]+this.angle[r]+this.length[r])||(t.translate(this.sx[r],this.sy[r]),t.rotate(this.angle[r]),t.beginPath(),t.moveTo(0,0),t.lineTo(this.length[r],0),n.line_properties.set_vectorize(t,r),t.stroke(),t.rotate(-this.angle[r]),s.push(t.translate(-this.sx[r],-this.sy[r])));return s}},n.prototype.draw_legend=function(t,e,n,r,i){return this._generic_line_legend(t,e,n,r,i)},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/rect",["underscore","rbush","renderer/properties","./glyph"],function(t,n,r,i){var o,s,a,l;return s=function(r){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,r),i.prototype._fields=["x","y","width","height","angle"],i.prototype._properties=["line","fill"],i.prototype._map_data=function(){var e,n,r,i,o,s;for(o=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),n=o[0],r=o[1],this.sw=this.distance_vector("x","width","center",this.mget("glyphspec").dilate),this.sh=this.distance_vector("y","height","center",this.mget("glyphspec").dilate),this.sx=new Array(n.length),this.sy=new Array(n.length),e=i=0,s=n.length;s>=0?s>i:i>s;e=s>=0?++i:--i)this.sx[e]=Math.abs(n[e]-this.sw[e])<2?Math.round(n[e]):n[e],this.sy[e]=Math.abs(r[e]-this.sh[e])<2?Math.round(r[e]):r[e];return this.max_width=t.max(this.width),this.max_height=t.max(this.height)},i.prototype._set_data=function(){var t,e,r,i;for(this.index=n(),e=[],t=r=0,i=this.x.length;i>=0?i>r:r>i;t=i>=0?++r:--r)isNaN(this.x[t]+this.y[t])||e.push([this.x[t],this.y[t],this.x[t],this.y[t],{i:t}]);return this.index.load(e)},i.prototype._render=function(t,e,n,r,i,o,s){var a,l,c,u,h;if(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.sw),null==s&&(s=this.sh),n.fill_properties.do_fill)for(l=0,u=e.length;u>l;l++)a=e[l],isNaN(r[a]+i[a]+o[a]+s[a]+this.angle[a])||(n.fill_properties.set_vectorize(t,a),this.angle[a]?(t.translate(r[a],i[a]),t.rotate(this.angle[a]),t.fillRect(-o[a]/2,-s[a]/2,o[a],s[a]),t.rotate(-this.angle[a]),t.translate(-r[a],-i[a])):(t.fillRect(r[a]-o[a]/2,i[a]-s[a]/2,o[a],s[a]),t.rect(r[a]-o[a]/2,i[a]-s[a]/2,o[a],s[a])));if(n.line_properties.do_stroke){for(t.beginPath(),c=0,h=e.length;h>c;c++)a=e[c],isNaN(r[a]+i[a]+o[a]+s[a]+this.angle[a])||(this.angle[a]?(t.translate(r[a],i[a]),t.rotate(this.angle[a]),t.rect(-o[a]/2,-s[a]/2,o[a],s[a]),t.rotate(-this.angle[a]),t.translate(-r[a],-i[a])):t.rect(r[a]-o[a]/2,i[a]-s[a]/2,o[a],s[a]),n.line_properties.set_vectorize(t,a),t.stroke(),t.beginPath());return t.stroke()}},i.prototype._hit_point=function(t){var e,n,r,i,o,s,a,l,c,u,h,p,d,_,f,g,m,v,y,b,w,x,k,j,C,T,M,N,S,A,E,O,P,z;for(O=[t.vx,t.vy],f=O[0],v=O[1],x=this.plot_view.xmapper.map_from_target(f),T=this.plot_view.ymapper.map_from_target(v),C="string"==typeof x,S="string"==typeof T,C||S?n=function(){var t,e,n;for(n=[],s=t=0,e=this.x.length;e>=0?e>t:t>e;s=e>=0?++t:--t)n.push(s);return n}.call(this):("screen"===this.width_units||C?(l=this.max_width,C&&(l=this.plot_view.xmapper.map_to_target(l)),g=f-2*l,m=f+2*l,P=this.plot_view.xmapper.v_map_from_target([g,m]),k=P[0],j=P[1]):(k=x-2*this.max_width,j=x+2*this.max_width),"screen"===this.height_units||S?(a=this.max_height,S&&(a=this.plot_view.ymapper.map_to_target(a)),y=v-2*a,b=v+2*a,z=this.plot_view.ymapper.v_map_from_target([y,b]),M=z[0],N=z[1]):(M=T-2*this.max_height,N=T+2*this.max_height),n=function(){var t,e,n,r;for(n=this.index.search([k,M,j,N]),r=[],t=0,e=n.length;e>t;t++)c=n[t],r.push(c[4].i);return r}.call(this)),o=[],A=0,E=n.length;E>A;A++)s=n[A],d="screen"===this.width_units||C?this.plot_view.view_state.vx_to_sx(f):this.plot_view.view_state.vx_to_sx(this.plot_view.xmapper.map_to_target(x)),_="screen"===this.height_units||S?this.plot_view.view_state.vy_to_sy(v):this.plot_view.view_state.vy_to_sy(this.plot_view.ymapper.map_to_target(T)),this.angle[s]&&(r=Math.sqrt(Math.pow(d-this.sx[s],2)+Math.pow(_-this.sy[s],2)),p=Math.sin(-this.angle[s]),e=Math.cos(-this.angle[s]),u=e*(d-this.sx[s])-p*(_-this.sy[s])+this.sx[s],h=p*(d-this.sx[s])+e*(_-this.sy[s])+this.sy[s],d=u,_=h),w=Math.abs(this.sx[s]-d)<=this.sw[s]/2,i=Math.abs(this.sy[s]-_)<=this.sh[s]/2,i&&w&&o.push(s);return o},i.prototype.draw_legend=function(t,e,n,r,i){var o,s,a,l,c,u,h,p,d;return a=null!=(d=this.get_reference_point())?d:0,s=[a],h={},h[a]=(e+n)/2,p={},p[a]=(r+i)/2,l=this.sw[a]/this.sh[a],o=.8*Math.min(Math.abs(n-e),Math.abs(i-r)),u={},c={},l>1?(u[a]=o,c[a]=o/l):(u[a]=o*l,c[a]=o),this._render(t,s,this.glyph_props,h,p,u,c)},i}(i.View),o=function(n){function r(){return l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=s,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:"gray",fill_alpha:1,line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0,angle:0,dilate:!1})},r}(i.Model),{Model:o,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/square",["underscore","renderer/properties","./marker"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=["line","fill"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,c;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),c=[],a=0,l=e.length;l>a;a++)s=e[a],isNaN(r[s]+i[s]+o[s])||(t.translate(r[s],i[s]),t.beginPath(),t.rect(-o[s]/2,-o[s]/2,o[s],o[s]),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke&&(n.line_properties.set_vectorize(t,s),t.stroke()),c.push(t.translate(-r[s],-i[s])));return c},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{size_units:"screen",fill_color:"gray",fill_alpha:1,line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/square_x",["underscore","renderer/properties","./marker"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=["line","fill"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,c,u;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),u=[],l=0,c=e.length;c>l;l++)s=e[l],isNaN(r[s]+i[s]+o[s])||(t.translate(r[s],i[s]),t.beginPath(),t.rect(-o[s]/2,-o[s]/2,o[s],o[s]),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke&&(n.line_properties.set_vectorize(t,s),t.stroke(),a=o[s]/2,t.moveTo(-a,+a),t.lineTo(+a,-a),t.moveTo(-a,-a),t.lineTo(+a,+a),t.stroke()),u.push(t.translate(-r[s],-i[s])));return u},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)
            }return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{size_units:"screen",fill_color:"gray",fill_alpha:1,line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/square_cross",["underscore","renderer/properties","./marker"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=["line","fill"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,c,u;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),u=[],l=0,c=e.length;c>l;l++)s=e[l],isNaN(r[s]+i[s]+o[s])||(t.translate(r[s],i[s]),t.beginPath(),t.rect(-o[s]/2,-o[s]/2,o[s],o[s]),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke&&(n.line_properties.set_vectorize(t,s),a=o[s]/2,t.moveTo(0,+a),t.lineTo(0,-a),t.moveTo(-a,0),t.lineTo(+a,0),t.stroke()),u.push(t.translate(-r[s],-i[s])));return u},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{size_units:"screen",fill_color:"gray",fill_alpha:1,line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/segment",["underscore","renderer/properties","./glyph"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=["x0","y0","x1","y1"],n.prototype._properties=["line"],n.prototype._map_data=function(){var t,e;return t=this.plot_view.map_to_screen(this.x0,this.glyph_props.x0.units,this.y0,this.glyph_props.y0.units),this.sx0=t[0],this.sy0=t[1],e=this.plot_view.map_to_screen(this.x1,this.glyph_props.x1.units,this.y1,this.glyph_props.y1.units),this.sx1=e[0],this.sy1=e[1],e},n.prototype._render=function(t,e,n){var r,i,o,s;if(n.line_properties.do_stroke){for(s=[],i=0,o=e.length;o>i;i++)r=e[i],isNaN(this.sx0[r]+this.sy0[r]+this.sx1[r]+this.sy1[r])||(t.beginPath(),t.moveTo(this.sx0[r],this.sy0[r]),t.lineTo(this.sx1[r],this.sy1[r]),n.line_properties.set_vectorize(t,r),s.push(t.stroke()));return s}},n.prototype.draw_legend=function(t,e,n,r,i){return this._generic_line_legend(t,e,n,r,i)},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/text",["underscore","renderer/properties","./glyph"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=["x","y","angle","text:string"],n.prototype._properties=["text"],n.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=t[0],this.sy=t[1],t},n.prototype._render=function(t,e,n){var r,i,o,s;for(s=[],i=0,o=e.length;o>i;i++)r=e[i],isNaN(this.sx[r]+this.sy[r]+this.angle[r])||(t.translate(this.sx[r],this.sy[r]),t.rotate(this.angle[r]),n.text_properties.set_vectorize(t,r),t.fillText(this.text[r],0,0),t.rotate(-this.angle[r]),s.push(t.translate(-this.sx[r],-this.sy[r])));return s},n.prototype.draw_legend=function(t,e,n,r,i){var o,s,a,l;return o=this.glyph_props,l=o.text_properties,t.save(),a=this.get_reference_point(),s=null!=a?a:o,l.set(t,s),t.font=l.font(12),t.textAlign="right",t.textBaseline="middle",t.fillText("txt",n,(r+i)/2),t.restore()},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{text_font:"helvetica",text_font_size:"12pt",text_font_style:"normal",text_color:"#444444",text_alpha:1,text_align:"left",text_baseline:"bottom"})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/triangle",["underscore","renderer/properties","./marker"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=["line","fill"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,c,u,h,p;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),p=[],u=0,h=e.length;h>u;u++)l=e[u],isNaN(r[l]+i[l]+o[l])||(s=o[l]*Math.sqrt(3)/6,c=o[l]/2,a=o[l]*Math.sqrt(3)/2,t.beginPath(),t.moveTo(r[l]-c,i[l]+s),t.lineTo(r[l]+c,i[l]+s),t.lineTo(r[l],i[l]+s-a),t.closePath(),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,l),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,l),p.push(t.stroke())):p.push(void 0));return p},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:"gray",fill_alpha:1,line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/wedge",["underscore","rbush","common/mathutils","renderer/properties","./glyph"],function(t,n,r,i,o){var s,a,l,c;return a=function(i){function o(){return l=o.__super__.constructor.apply(this,arguments)}return e(o,i),o.prototype._fields=["x","y","radius","start_angle","end_angle","direction:string"],o.prototype._properties=["line","fill"],o.prototype._set_data=function(){var e,r,i,o;for(this.max_radius=t.max(this.radius),this.index=n(),r=[],e=i=0,o=this.x.length;o>=0?o>i:i>o;e=o>=0?++i:--i)isNaN(this.x[e]+this.y[e])||r.push([this.x[e],this.y[e],this.x[e],this.y[e],{i:e}]);return this.index.load(r)},o.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=t[0],this.sy=t[1],this.radius=this.distance_vector("x","radius","edge")},o.prototype._render=function(t,e,n,r,i,o){var s,a,l,c;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.radius),c=[],a=0,l=e.length;l>a;a++)s=e[a],isNaN(r[s]+i[s]+o[s]+this.start_angle[s]+this.end_angle[s]+this.direction[s])||(t.beginPath(),t.arc(r[s],i[s],o[s],this.start_angle[s],this.end_angle[s],this.direction[s]),t.lineTo(r[s],i[s]),t.closePath(),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),c.push(t.stroke())):c.push(void 0));return c},o.prototype._hit_point=function(e){var n,i,o,s,a,l,c,u,h,p,d,_,f,g,m,v,y,b,w,x,k,j,C,T,M,N,S,A,E,O,P,z,D,F,$,q;if(D=[e.vx,e.vy],m=D[0],b=D[1],k=this.plot_view.xmapper.map_from_target(m),T=this.plot_view.ymapper.map_from_target(b),"screen"===this.radius_units?(v=m-this.max_radius,y=m+this.max_radius,F=this.plot_view.xmapper.v_map_from_target([v,y]),j=F[0],C=F[1],w=b-this.max_radius,x=b+this.max_radius,$=this.plot_view.ymapper.v_map_from_target([w,x]),M=$[0],N=$[1]):(j=k-this.max_radius,C=k+this.max_radius,M=T-this.max_radius,N=T+this.max_radius),i=function(){var t,e,n,r;for(n=this.index.search([j,M,C,N]),r=[],t=0,e=n.length;e>t;t++)c=n[t],r.push(c[4].i);return r}.call(this),o=[],"screen"===this.radius_units)for(h=this.plot_view.view_state.vx_to_sx(m),_=this.plot_view.view_state.vy_to_sy(b),S=0,O=i.length;O>S;S++)l=i[S],u=Math.pow(this.radius[l],2),s=Math.pow(this.sx[l]-h,2)+Math.pow(this.sy[l]-_,2),u>=s&&o.push([l,s]);else for(A=0,P=i.length;P>A;A++)l=i[A],u=Math.pow(this.radius[l],2),p=this.plot_view.xmapper.map_to_target(k),d=this.plot_view.xmapper.map_to_target(this.x[l]),f=this.plot_view.ymapper.map_to_target(T),g=this.plot_view.ymapper.map_to_target(this.y[l]),s=Math.pow(p-d,2)+Math.pow(f-g,2),u>=s&&o.push([l,s]);for(a=[],E=0,z=o.length;z>E;E++)q=o[E],l=q[0],s=q[1],h=this.plot_view.view_state.vx_to_sx(m),_=this.plot_view.view_state.vy_to_sy(b),n=Math.atan2(_-this.sy[l],h-this.sx[l]),r.angle_between(-n,-this.start_angle[l],-this.end_angle[l],this.direction[l])&&a.push([l,s]);return a=t.chain(a).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value()},o.prototype.draw_legend=function(t,e,n,r,i){var o,s,a,l,c,u;return a=null!=(u=this.get_reference_point())?u:0,o=[a],l={},l[a]=(e+n)/2,c={},c[a]=(r+i)/2,s={},s[a]=.4*Math.min(Math.abs(n-e),Math.abs(i-r)),this._render(t,o,this.glyph_props,l,c,s)},o}(o.View),s=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=a,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{direction:"anticlock",fill_color:"gray",fill_alpha:1,line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(o.Model),{Model:s,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/x",["underscore","renderer/properties","./marker"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=["line"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,c,u;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),u=[],l=0,c=e.length;c>l;l++)s=e[l],isNaN(r[s]+i[s]+o[s])||(a=o[s]/2,t.beginPath(),t.moveTo(r[s]-a,i[s]+a),t.lineTo(r[s]+a,i[s]-a),t.moveTo(r[s]-a,i[s]-a),t.lineTo(r[s]+a,i[s]+a),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),u.push(t.stroke())):u.push(void 0));return u},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type="Glyph",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{line_color:"red",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/glyph/glyph_factory",["require","exports","module","underscore","common/has_parent","common/plot_widget","./annular_wedge","./annulus","./arc","./asterisk","./bezier","./circle","./circle_x","./circle_cross","./diamond","./diamond_cross","./image","./image_rgba","./image_uri","./inverted_triangle","./line","./multi_line","./oval","./patch","./patches","./cross","./quad","./quadratic","./ray","./rect","./square","./square_x","./square_cross","./segment","./text","./triangle","./wedge","./x"],function(t){var n,r,i,o,s,a,l,c,u,h,p,d,_,f,g,m,v,y,b,w,x,k,j,C,T,M,N,S,A,E,O,P,z,D,F,$,q,B;return q=t("underscore"),r=t("common/has_parent"),i=t("common/plot_widget"),o=t("./annular_wedge"),s=t("./annulus"),a=t("./arc"),l=t("./asterisk"),c=t("./bezier"),u=t("./circle"),p=t("./circle_x"),h=t("./circle_cross"),_=t("./diamond"),f=t("./diamond_cross"),m=t("./image"),v=t("./image_rgba"),y=t("./image_uri"),b=t("./inverted_triangle"),w=t("./line"),x=t("./multi_line"),k=t("./oval"),j=t("./patch"),C=t("./patches"),d=t("./cross"),T=t("./quad"),M=t("./quadratic"),N=t("./ray"),S=t("./rect"),E=t("./square"),P=t("./square_x"),O=t("./square_cross"),A=t("./segment"),z=t("./text"),D=t("./triangle"),F=t("./wedge"),$=t("./x"),g={annular_wedge:o.Model,annulus:s.Model,arc:a.Model,asterisk:l.Model,bezier:c.Model,circle:u.Model,circle_x:p.Model,circle_cross:h.Model,diamond:_.Model,diamond_cross:f.Model,image:m.Model,image_rgba:v.Model,image_uri:y.Model,inverted_triangle:b.Model,line:w.Model,multi_line:x.Model,oval:k.Model,patch:j.Model,patches:C.Model,cross:d.Model,quad:T.Model,quadratic:M.Model,ray:N.Model,square:E.Model,square_x:P.Model,square_cross:O.Model,rect:S.Model,segment:A.Model,text:z.Model,triangle:D.Model,wedge:F.Model,x:$.Model},n=function(t){function n(){return B=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=function(t,e){var n,r,i;return null==(null!=(i=t.glyphspec)?i.type:void 0)?(console.log("missing glyph type"),void 0):(r=t.glyphspec.type,r in g?(n=g[r],new n(t,e)):(console.log("unknown glyph type '"+r+"'"),void 0))},n}(Backbone.Collection),{Collection:new n}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/guide/axis",["underscore","backbone","common/safebind","common/has_parent","common/plot_widget","renderer/properties"],function(t,n,r,i,o,s){var a,l,c,u,h,p,d,_,f,g,m,v,y;return c=s.glyph_properties,u=s.line_properties,h=s.text_properties,f={top:{parallel:0,normal:-Math.PI/2,horizontal:0,vertical:-Math.PI/2},bottom:{parallel:0,normal:Math.PI/2,horizontal:0,vertical:Math.PI/2},left:{parallel:-Math.PI/2,normal:0,horizontal:0,vertical:-Math.PI/2},right:{parallel:Math.PI/2,normal:0,horizontal:0,vertical:Math.PI/2}},g={top:{parallel:"alphabetic",normal:"middle",horizontal:"alphabetic",vertical:"middle"},bottom:{parallel:"hanging",normal:"middle",horizontal:"hanging",vertical:"middle"},left:{parallel:"alphabetic",normal:"middle",horizontal:"middle",vertical:"alphabetic"},right:{parallel:"alphabetic",normal:"middle",horizontal:"middle",vertical:"alphabetic"}},p={top:{parallel:"center",normal:"left",horizontal:"center",vertical:"left"},bottom:{parallel:"center",normal:"left",horizontal:"center",vertical:"right"},left:{parallel:"center",normal:"right",horizontal:"right",vertical:"center"},right:{parallel:"center",normal:"left",horizontal:"left",vertical:"center"}},d={top:"right",bottom:"left",left:"right",right:"left"},_={top:"left",bottom:"right",left:"right",right:"left"},m=[{norm:{norm:{min:1,max:-1},flip:{min:-1,max:1}},flip:{norm:{min:1,max:-1},flip:{min:-1,max:1}}},{norm:{norm:{min:-1,max:1},flip:{min:-1,max:1}},flip:{norm:{min:1,max:-1},flip:{min:1,max:-1}}}],l=function(n){function i(){return v=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.initialize=function(t){return i.__super__.initialize.call(this,t),this.rule_props=new u(this,null,"axis_"),this.major_tick_props=new u(this,null,"major_tick_"),this.major_label_props=new h(this,null,"major_label_"),this.axis_label_props=new h(this,null,"axis_label_")},i.prototype.render=function(){var t;return t=this.plot_view.ctx,t.save(),this._draw_rule(t),this._draw_major_ticks(t),this._draw_major_labels(t),this._draw_axis_label(t),t.restore()},i.prototype.bind_bokeh_events=function(){return r(this,this.model,"change",this.request_render)},i.prototype.padding_request=function(){return this._padding_request()},i.prototype._draw_rule=function(t){var e,n,r,i,o,s,a,l,c,u,h,p,d;if(this.rule_props.do_stroke){for(u=e=this.mget("rule_coords"),a=u[0],l=u[1],h=this.plot_view.map_to_screen(a,"data",l,"data"),o=h[0],s=h[1],p=this.mget("normals"),r=p[0],i=p[1],this.rule_props.set(t,this),t.beginPath(),t.moveTo(Math.round(o[0]),Math.round(s[0])),n=c=1,d=o.length;d>=1?d>c:c>d;n=d>=1?++c:--c)t.lineTo(Math.round(o[n]),Math.round(s[n]));return t.stroke()}},i.prototype._draw_major_ticks=function(t){var e,n,r,i,o,s,a,l,c,u,h,p,d,_,f,g;if(this.major_tick_props.do_stroke){for(p=e=this.mget("major_coords"),c=p[0],u=p[1],d=this.plot_view.map_to_screen(c,"data",u,"data"),o=d[0],s=d[1],_=this.mget("normals"),r=_[0],i=_[1],a=this.mget("major_tick_in"),l=this.mget("major_tick_out"),this.major_tick_props.set(t,this),g=[],n=h=0,f=o.length;f>=0?f>h:h>f;n=f>=0?++h:--h)t.beginPath(),t.moveTo(Math.round(o[n]+r*l),Math.round(s[n]+i*l)),t.lineTo(Math.round(o[n]-r*a),Math.round(s[n]-i*a)),g.push(t.stroke());return g}},i.prototype._draw_major_labels=function(e){var n,r,i,o,s,a,l,c,u,h,p,d,_,g,m,v,y,b,w,x;for(v=r=this.mget("major_coords"),_=v[0],g=v[1],y=this.plot_view.map_to_screen(_,"data",g,"data"),p=y[0],d=y[1],b=this.mget("normals"),a=b[0],l=b[1],i=this.mget("dimension"),u=this.mget("side"),c=this.mget("major_label_orientation"),n=t.isString(c)?f[u][c]:-c,h=this._tick_extent()+this.mget("major_label_standoff"),s=this.mget_obj("formatter").format(r[i]),this.major_label_props.set(e,this),this._apply_location_heuristics(e,u,c),x=[],o=m=0,w=p.length;w>=0?w>m:m>w;o=w>=0?++m:--m)n?(e.translate(p[o]+a*h,d[o]+l*h),e.rotate(n),e.fillText(s[o],0,0),e.rotate(-n),x.push(e.translate(-p[o]-a*h,-d[o]-l*h))):x.push(e.fillText(s[o],Math.round(p[o]+a*h),Math.round(d[o]+l*h)));return x},i.prototype._draw_axis_label=function(t){var e,n,r,i,o,s,a,l,c,u,h,p,d,_;return n=this.mget("axis_label"),null!=n?(p=this.mget("rule_coords"),u=p[0],h=p[1],d=this.plot_view.map_to_screen(u,"data",h,"data"),l=d[0],c=d[1],_=this.mget("normals"),r=_[0],i=_[1],s=this.mget("side"),o="parallel",e=f[s][o],a=this._tick_extent()+this._tick_label_extent()+this.mget("axis_label_standoff"),l=(l[0]+l[l.length-1])/2,c=(c[0]+c[c.length-1])/2,this.axis_label_props.set(t,this),this._apply_location_heuristics(t,s,o),e?(t.translate(l+r*a,c+i*a),t.rotate(e),t.fillText(n,0,0),t.rotate(-e),t.translate(-l-r*a,-c-i*a)):t.fillText(n,l+r*a,c+i*a)):void 0},i.prototype._apply_location_heuristics=function(e,n,r){var i,o;return t.isString(r)?(o=g[n][r],i=p[n][r]):0===r?(o=g[n][r],i=p[n][r]):0>r?(o="middle",i=d[n]):r>0&&(o="middle",i=_[n]),e.textBaseline=o,e.textAlign=i},i.prototype._tick_extent=function(){return this.mget("major_tick_out")},i.prototype._tick_label_extent=function(){var e,n,r,i,o,s,a,l,c,u,h,p,d,_,g,m,v,y;if(o=0,i=this.mget("dimension"),r=this.mget("major_coords"),p=this.mget("side"),u=this.mget("major_label_orientation"),c=this.mget_obj("formatter").format(r[i]),this.major_label_props.set(this.plot_view.ctx,this),t.isString(u)?(s=1,e=f[p][u]):(s=2,e=-u),e=Math.abs(e),n=Math.cos(e),h=Math.sin(e),"top"===p||"bottom"===p)for(l=g=0,v=c.length;v>=0?v>g:g>v;l=v>=0?++g:--g)null!=c[l]&&(_=1.1*this.plot_view.ctx.measureText(c[l]).width,a=.9*this.plot_view.ctx.measureText(c[l]).ascent,d=_*h+a/s*n,d>o&&(o=d));else for(l=m=0,y=c.length;y>=0?y>m:m>y;l=y>=0?++m:--m)null!=c[l]&&(_=1.1*this.plot_view.ctx.measureText(c[l]).width,a=.9*this.plot_view.ctx.measureText(c[l]).ascent,d=_*n+a/s*h,d>o&&(o=d));return o>0&&(o+=this.mget("major_label_standoff")),o},i.prototype._axis_label_extent=function(){var t,e,n,r,i,o,s,a;return n=0,s=this.mget("side"),i="parallel",this.major_label_props.set(this.plot_view.ctx,this),t=Math.abs(f[s][i]),e=Math.cos(t),o=Math.sin(t),this.mget("axis_label")&&(n+=this.mget("axis_label_standoff"),this.axis_label_props.set(this.plot_view.ctx,this),a=1.1*this.plot_view.ctx.measureText(this.mget("axis_label")).width,r=.9*this.plot_view.ctx.measureText(this.mget("axis_label")).ascent,n+="top"===s||"bottom"===s?a*o+r*e:a*e+r*o),n},i.prototype._padding_request=function(){var e,n,r,i,o;return r={},i=this.mget("side"),e=null!=(o=this.mget("location"))?o:"min",t.isString(e)?(n=0,n+=this._tick_extent(),n+=this._tick_label_extent(),n+=this._axis_label_extent(),r[i]=n,r):r},i}(o),a=function(n){function r(){return y=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=l,r.prototype.type="Axis",r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.register_property("computed_bounds",this._bounds,!1),this.add_dependencies("computed_bounds",this,["bounds"]),this.register_property("rule_coords",this._rule_coords,!1),this.add_dependencies("rule_coords",this,["computed_bounds","dimension","location"]),this.register_property("major_coords",this._major_coords,!1),this.add_dependencies("major_coords",this,["computed_bounds","dimension","location"]),this.register_property("normals",this._normals,!0),this.add_dependencies("normals",this,["computed_bounds","dimension","location"]),this.register_property("side",this._side,!1),this.add_dependencies("side",this,["normals"]),this.register_property("padding_request",this._padding_request,!1)},r.prototype.dinitialize=function(){return this.add_dependencies("computed_bounds",this.get_obj("plot"),["x_range","y_range"])},r.prototype._bounds=function(){var e,n,r,i,o,s,a,l;return n=this.get("dimension"),r=(n+1)%2,o=[this.get_obj("plot").get_obj("x_range"),this.get_obj("plot").get_obj("y_range")],a=null!=(l=this.get("bounds"))?l:"auto",i=[o[n].get("min"),o[n].get("max")],t.isArray(a)?Math.abs(a[0]-a[1])>Math.abs(i[0]-i[1])?(s=Math.max(Math.min(a[0],a[1]),i[0]),e=Math.min(Math.max(a[0],a[1]),i[1])):(s=Math.min(a[0],a[1]),e=Math.max(a[0],a[1])):(s=i[0],e=i[1]),[s,e]},r.prototype._rule_coords=function(){var e,n,r,i,o,s,a,l,c,u,h,p,d,_,f;return s=this.get("dimension"),a=(s+1)%2,u=[this.get_obj("plot").get_obj("x_range"),this.get_obj("plot").get_obj("y_range")],c=u[s],r=u[a],_=this.get("computed_bounds"),h=_[0],o=_[1],p=new Array(2),d=new Array(2),n=[p,d],i=r.get("start"),e=r.get("end"),l=null!=(f=this.get("location"))?f:"min",t.isString(l)&&("left"===l||"bottom"===l?l=e>i?"start":"end":("right"===l||"top"===l)&&(l=e>i?"end":"start"),l=r.get(l)),n[s][0]=Math.max(h,c.get("min")),n[s][1]=Math.min(o,c.get("max")),n[s][0]>n[s][1]&&(n[s][0]=n[s][1]=0/0),n[a][0]=l,n[a][1]=l,n},r.prototype._major_coords=function(){var e,n,r,i,o,s,a,l,c,u,h,p,d,_,f,g,m,v,y,b,w,x,k,j;if(s=this.get("dimension"),l=(s+1)%2,d=[this.get_obj("plot").get_obj("x_range"),this.get_obj("plot").get_obj("y_range")],u=d[s],r=d[l],b=this.get("computed_bounds"),_=b[0],o=b[1],f=this.get_obj("ticker").get_ticks(_,o,u,{}),i=r.get("start"),e=r.get("end"),c=null!=(w=this.get("location"))?w:"min",t.isString(c)&&("left"===c||"bottom"===c?c=e>i?"start":"end":("right"===c||"top"===c)&&(c=e>i?"end":"start"),c=r.get(c)),g=[],m=[],n=[g,m],"FactorRange"===u.type)for(a=v=0,x=f.length;x>=0?x>v:v>x;a=x>=0?++v:--v)n[s].push(f[a]),n[l].push(c);else for(k=[u.get("min"),u.get("max")],p=k[0],h=k[1],a=y=0,j=f.length;j>=0?j>y:y>j;a=j>=0?++y:--y)f[a]<p||f[a]>h||(n[s].push(f[a]),n[l].push(c));return n},r.prototype._normals=function(){var e,n,r,i,o,s,a,l,c,u,h,p,d,_,f;return o=this.get("dimension"),a=(o+1)%2,p=[this.get_obj("plot").get_obj("x_range"),this.get_obj("plot").get_obj("y_range")],h=p[o],n=p[a],_=this.get("computed_bounds"),d=_[0],i=_[1],r=n.get("start"),e=n.get("end"),c=null!=(f=this.get("location"))?f:"min",u=[0,0],t.isString(c)?(s=d>i?"flip":"norm",r>e?(l="flip","left"===c||"bottom"===c?c="max":("top"===c||"right"===c)&&(c="max")):(l="norm","left"===c||"bottom"===c?c="min":("top"===c||"right"===c)&&(c="max")),u[a]=m[o][s][l][c]):u[a]=0===o?Math.abs(c-r)<=Math.abs(c-e)?1:-1:Math.abs(c-r)<=Math.abs(c-e)?-1:1,u},r.prototype._side=function(){var t,e;return t=this.get("normals"),-1===t[1]?e="top":1===t[1]?e="bottom":-1===t[0]?e="left":1===t[0]&&(e="right"),e},r.prototype.display_defaults=function(){return{level:"overlay",axis_line_color:"black",axis_line_width:1,axis_line_alpha:1,axis_line_join:"miter",axis_line_cap:"butt",axis_line_dash:[],axis_line_dash_offset:0,major_tick_in:2,major_tick_out:6,major_tick_line_color:"black",major_tick_line_width:1,major_tick_line_alpha:1,major_tick_line_join:"miter",major_tick_line_cap:"butt",major_tick_line_dash:[],major_tick_line_dash_offset:0,major_label_standoff:5,major_label_orientation:"horizontal",major_label_text_font:"helvetica",major_label_text_font_size:"10pt",major_label_text_font_style:"normal",major_label_text_color:"#444444",major_label_text_alpha:1,major_label_text_align:"center",major_label_text_baseline:"alphabetic",axis_label:"",axis_label_standoff:5,axis_label_text_font:"helvetica",axis_label_text_font_size:"16pt",axis_label_text_font_style:"normal",axis_label_text_color:"#444444",axis_label_text_alpha:1,axis_label_text_align:"center",axis_label_text_baseline:"alphabetic"}},r}(i),{Model:a,View:l}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("ticking/categorical_ticker",["backbone","common/has_properties"],function(t,n){var r,i,o,s;return r=function(t){function n(){return o=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type="CategoricalTicker",n.prototype.get_ticks=function(t,e,n,r){var i;return i=r.desired_n_ticks,n.get("factors")},n.prototype.defaults=function(){return n.__super__.defaults.call(this)},n}(n),i=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(t.Collection),{Model:r,Collection:new i}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("ticking/categorical_tick_formatter",["backbone","common/has_properties"],function(t,n){var r,i,o,s;return r=function(t){function n(){return o=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type="CategoricalTickFormatter",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e)},n.prototype.format=function(t){return t},n}(n),i=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n.prototype.defaults=function(){return n.__super__.defaults.call(this)},n}(t.Collection),{Model:r,Collection:new i}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/guide/categorical_axis",["backbone","./axis","range/factor_range","ticking/categorical_ticker","ticking/categorical_tick_formatter"],function(t,n,r,i,o){var s,a,l,c,u,h;return l=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(n.View),a=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=l,n.prototype.type="CategoricalAxis",n.prototype.dinitialize=function(t,e){return n.__super__.dinitialize.call(this,t,e),null==this.get_obj("ticker")&&this.set_obj("ticker",i.Collection.create()),null==this.get_obj("formatter")?this.set_obj("formatter",o.Collection.create()):void 0},n.prototype._bounds=function(){var t,e,n,r,i;return t=this.get("dimension"),n=[this.get_obj("plot").get_obj("x_range"),this.get_obj("plot").get_obj("y_range")],r=null!=(i=this.get("bounds"))?i:"auto","auto"!==r&&console.log("Categorical Axes only support user_bounds='auto', ignoring"),e=[n[t].get("min"),n[t].get("max")]},n}(n.Model),s=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(t.Collection),{Model:a,Collection:new s,View:l}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("ticking/abstract_ticker",["underscore","backbone","common/has_properties"],function(t,n,r){var i,o,s,a,l,c;return a=function(t){var e,n,r,i,o;return null===t?"null":null==t?"undefined":t.constructor===Array?(n=function(){var n,r,i;for(i=[],n=0,r=t.length;r>n;n++)e=t[n],i.push(a(e));return i}().join(", "),"["+n+"]"):t.constructor===Object?(o=function(){var e;e=[];for(r in t)e.push(""+r+": "+a(t[r]));return e}().join(", "),"{"+o+"}"):t.constructor===String?'"'+t+'"':t.constructor===Function?"<Function: "+t.name+">":(i=t.toString(),"[object Object]"===i?"<"+t.constructor.name+">":i)},s=6,i=function(n){function r(){return l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type="AbstractTicker",r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e)},r.prototype.get_ticks=function(t,e,n,r){var i;return i=r.desired_n_ticks,null==i&&(i=s),this.get_ticks_no_defaults(t,e,i)},r.prototype.get_ticks_no_defaults=function(e,n,r){var i,o,s,a,l,c;return a=this.get_interval(e,n,r),l=Math.floor(e/a),i=Math.ceil(n/a),s=t.isNaN(l)||t.isNaN(i)?[]:t.range(l,i+1),c=function(){var t,e,n;for(n=[],t=0,e=s.length;e>t;t++)o=s[t],n.push(o*a);return n}()},r.prototype.get_interval=void 0,r.prototype.get_min_interval=function(){return this.get("min_interval")},r.prototype.get_max_interval=function(){return this.get("max_interval")},r.prototype.toString=function(){var t,e,n,r;return t=typeof this,r=this.get("toString_properties"),n=function(){var t,n,i;for(i=[],t=0,n=r.length;n>t;t++)e=r[t],i.push(""+e+"="+a(this[e]));return i}.call(this).join(", "),""+t+"("+n+")"},r.prototype.get_ideal_interval=function(t,e,n){var r;return r=e-t,r/n},r.prototype.defaults=function(){return t.extend(r.__super__.defaults.call(this),{toString_properties:[]})},r}(r),o=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n.Collection),{Model:i,Collection:new o}})}.call(this),function(){n("ticking/util",["underscore","backbone"],function(t){var e,n,r,i,o,s,a,l,c,u,h;return r=1,s=1e3,i=60*s,n=60*i,e=24*n,o=30*e,a=365*e,l=function(e){var n;return n=t.min(t.range(e.length),function(t){return e[t]})},c=function(t){return new Date(t.getTime())},u=function(t){return t=c(t),t.setUTCDate(1),t.setUTCHours(0),t.setUTCMinutes(0),t.setUTCSeconds(0),t.setUTCMilliseconds(0),t},h=function(t){return t=u(t),t.setUTCMonth(0),t},{argmin:l,copy_date:c,last_month_no_later_than:u,last_year_no_later_than:h,ONE_MILLI:r,ONE_SECOND:s,ONE_MINUTE:i,ONE_HOUR:n,ONE_DAY:e,ONE_MONTH:o,ONE_YEAR:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("ticking/adaptive_ticker",["underscore","backbone","ticking/abstract_ticker","ticking/util"],function(t,n,r,i){var o,s,a,l,c,u,h;return a=i.argmin,l=function(t,e,n){return Math.max(e,Math.min(n,t))},c=function(t,e){return null==e&&(e=Math.E),Math.log(t)/Math.log(e)},o=function(n){function r(){return u=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type="AdaptiveTicker",r.prototype.initialize=function(e,n){var i,o;return r.__super__.initialize.call(this,e,n),i=t.last(this.get("mantissas"))/this.get("base"),o=t.first(this.get("mantissas"))*this.get("base"),this.extended_mantissas=t.flatten([i,this.get("mantissas"),o]),this.base_factor=0===this.get("min_interval")?1:this.get("min_interval")
            },r.prototype.get_interval=function(t,e,n){var r,i,o,s,u,h,p,d,_;return o=e-t,u=this.get_ideal_interval(t,e,n),_=Math.floor(c(u/this.base_factor,this.get("base"))),h=Math.pow(this.get("base"),_)*this.base_factor,p=u/h,i=this.extended_mantissas,s=i.map(function(t){return Math.abs(n-o/(t*h))}),r=i[a(s)],d=r*h,l(d,this.get("min_interval"),this.get("max_interval"))},r.prototype.defaults=function(){return t.extend(r.__super__.defaults.call(this),{toString_properties:["mantissas","base","min_magnitude","max_magnitude"],base:10,min_interval:0,max_interval:1/0})},r}(r.Model),s=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n.Collection),{Model:o,Collection:new s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("ticking/composite_ticker",["underscore","backbone","ticking/abstract_ticker","ticking/util"],function(t,n,r,i){var o,s,a,l,c;return a=i.argmin,o=function(n){function r(){return l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type="CompositeTicker",r.prototype.initialize=function(e,n){var i;return r.__super__.initialize.call(this,e,n),i=this.get("tickers"),this.register_property("min_intervals",function(){return t.invoke(i,"get_min_interval")},!0),this.add_dependencies("min_intervals",this,["tickers"]),this.register_property("max_intervals",function(){return t.invoke(i,"get_max_interval")},!0),this.add_dependencies("max_intervals",this,["tickers"]),this.register_property("min_interval",function(){return t.first(this.get("min_intervals"))},!0),this.add_dependencies("min_interval",this,["min_intervals"]),this.register_property("max_interval",function(){return t.first(this.get("max_intervals"))},!0),this.add_dependencies("max_interval",this,["max_interval"])},r.prototype.get_best_ticker=function(e,n,r){var i,o,s,l,c,u,h,p;return l=n-e,u=this.get_ideal_interval(e,n,r),p=[t.sortedIndex(this.get("min_intervals"),u)-1,t.sortedIndex(this.get("max_intervals"),u)],h=[this.get("min_intervals")[p[0]],this.get("max_intervals")[p[1]]],c=h.map(function(t){return Math.abs(r-l/t)}),i=a(c),1/0===i?this.get("tickers")[0]:(s=p[i],o=this.get("tickers")[s])},r.prototype.get_interval=function(t,e,n){var r;return r=this.get_best_ticker(t,e,n),r.get_interval(t,e,n)},r.prototype.get_ticks_no_defaults=function(t,e,n){var r,i;return r=this.get_best_ticker(t,e,n),i=r.get_ticks_no_defaults(t,e,n)},r.prototype.defaults=function(){return r.__super__.defaults.call(this)},r}(r.Model),s=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n.Collection),{Model:o,Collection:new s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("ticking/single_interval_ticker",["underscore","backbone","ticking/abstract_ticker"],function(t,n,r){var i,o,s,a;return i=function(n){function r(){return s=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type="SingleIntervalTicker",r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.register_property("min_interval",function(){return this.get("interval")},!0),this.add_dependencies("min_interval",this,["interval"]),this.register_property("max_interval",function(){return this.get("interval")},!0),this.add_dependencies("max_interval",this,["interval"])},r.prototype.get_interval=function(){return this.get("interval")},r.prototype.defaults=function(){return t.extend(r.__super__.defaults.call(this),{toString_properties:["interval"]})},r}(r.Model),o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n.Collection),{Model:i,Collection:new o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("ticking/days_ticker",["underscore","backbone","ticking/single_interval_ticker","ticking/util"],function(t,n,r,i){var o,s,a,l,c,u,h,p;return l=i.copy_date,u=i.last_month_no_later_than,a=i.ONE_DAY,c=function(t,e){var n,r,i,o,s;for(s=u(new Date(t)),i=u(new Date(e)),o=l(i),i.setUTCMonth(i.getUTCMonth()+1),r=[],n=s;;)if(r.push(l(n)),n.setUTCMonth(n.getUTCMonth()+1),n>i)break;return r},o=function(n){function r(){return h=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type="DaysTicker",r.prototype.initialize=function(t,e){var n,i;return r.__super__.initialize.call(this,t,e),n=this.get("days"),i=n.length>1?(n[1]-n[0])*a:31*a,this.set("interval",i)},r.prototype.get_ticks_no_defaults=function(e,n){var r,i,o,s,a,u,h,p;return h=c(e,n),s=this.get("days"),a=function(t,e){var n,r,i,o,a,c;for(n=[],a=0,c=s.length;c>a;a++)r=s[a],i=l(t),i.setUTCDate(r),o=new Date(i.getTime()+e/2),o.getUTCMonth()===t.getUTCMonth()&&n.push(i);return n},u=this.get("interval"),o=t.flatten(function(){var t,e,n;for(n=[],t=0,e=h.length;e>t;t++)i=h[t],n.push(a(i,u));return n}()),r=t.invoke(o,"getTime"),p=t.filter(r,function(t){return t>=e&&n>=t})},r.prototype.defaults=function(){return t.extend(r.__super__.defaults.call(this),{toString_properties:["days"]})},r}(r.Model),s=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n.Collection),{Model:o,Collection:new s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("ticking/months_ticker",["underscore","backbone","ticking/single_interval_ticker","ticking/util"],function(t,n,r,i){var o,s,a,l,c,u,h,p;return l=i.copy_date,u=i.last_year_no_later_than,a=i.ONE_MONTH,c=function(t,e){var n,r,i,o;for(o=u(new Date(t)),i=u(new Date(e)),i.setUTCFullYear(i.getUTCFullYear()+1),r=[],n=o;;)if(r.push(l(n)),n.setUTCFullYear(n.getUTCFullYear()+1),n>i)break;return r},o=function(n){function r(){return h=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type="MonthsTicker",r.prototype.initialize=function(t,e){var n,i;return r.__super__.initialize.call(this,t,e),i=this.get("months"),n=i.length>1?(i[1]-i[0])*a:12*a,this.set("interval",n)},r.prototype.get_ticks_no_defaults=function(e,n){var r,i,o,s,a,u,h;return h=c(e,n),s=this.get("months"),a=function(t){return s.map(function(e){var n;return n=l(t),n.setUTCMonth(e),n})},o=t.flatten(function(){var t,e,n;for(n=[],t=0,e=h.length;e>t;t++)i=h[t],n.push(a(i));return n}()),r=t.invoke(o,"getTime"),u=t.filter(r,function(t){return t>=e&&n>=t})},r.prototype.defaults=function(){return t.extend(r.__super__.defaults.call(this),{toString_properties:["months"]})},r}(r.Model),s=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n.Collection),{Model:o,Collection:new s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("ticking/basic_ticker",["ticking/adaptive_ticker"],function(t){var n,r,i,o;return n=function(t){function n(){return i=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type="BasicTicker",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e)},n.prototype.defaults=function(){return _.extend(n.__super__.defaults.call(this),{mantissas:[1,2,5]})},n}(t.Model),r=function(t){function r(){return o=r.__super__.constructor.apply(this,arguments)}return e(r,t),r.prototype.model=n,r}(Backbone.Collection),{Model:n,Collection:new r}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("ticking/years_ticker",["underscore","backbone","ticking/basic_ticker","ticking/single_interval_ticker","ticking/util"],function(t,n,r,i,o){var s,a,l,c,u,h;return c=o.last_year_no_later_than,s=o.ONE_YEAR,a=function(n){function i(){return u=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.type="YearsTicker",i.prototype.initialize=function(t,e){return i.__super__.initialize.call(this,t,e),this.set("interval",s),this.basic_ticker=new r.Model},i.prototype.get_ticks_no_defaults=function(e,n,r){var i,o,s,a,l,u;return s=c(new Date(e)).getUTCFullYear(),o=c(new Date(n)).getUTCFullYear(),u=this.basic_ticker.get_ticks_no_defaults(s,o,r),i=function(){var t,e,n;for(n=[],t=0,e=u.length;e>t;t++)l=u[t],n.push(Date.UTC(l,0,1));return n}(),a=t.filter(i,function(t){return t>=e&&n>=t})},i.prototype.defaults=function(){return t.extend(i.__super__.defaults.call(this),{toString_properties:["years"]})},i}(i.Model),l=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(n.Collection),{Model:a,Collection:new l}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("ticking/datetime_ticker",["underscore","ticking/adaptive_ticker","ticking/composite_ticker","ticking/days_ticker","ticking/months_ticker","ticking/years_ticker","ticking/util"],function(t,n,r,i,o,s,a){var l,c,u,h,p,d,_,f,g;return h=a.ONE_MILLI,_=a.ONE_SECOND,p=a.ONE_MINUTE,u=a.ONE_HOUR,d=a.ONE_MONTH,l=function(r){function a(){return f=a.__super__.constructor.apply(this,arguments)}return e(a,r),a.prototype.type="DatetimeTicker",a.prototype.defaults=function(){return t.extend(a.__super__.defaults.call(this),{tickers:[new n.Model({mantissas:[1,2,5],base:10,min_interval:0,max_interval:500*h}),new n.Model({mantissas:[1,2,5,10,15,20,30],base:60,min_interval:_,max_interval:30*p}),new n.Model({mantissas:[1,2,4,6,8,12],base:24,min_interval:u,max_interval:12*u}),new i.Model({days:t.range(1,32)}),new i.Model({days:t.range(1,31,3)}),new i.Model({days:[1,8,15,22]}),new i.Model({days:[1,15]}),new o.Model({months:t.range(0,12,1)}),new o.Model({months:t.range(0,12,2)}),new o.Model({months:t.range(0,12,4)}),new o.Model({months:t.range(0,12,6)}),new s.Model({})]})},a}(r.Model),c=function(t){function n(){return g=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=l,n}(Backbone.Collection),{Model:l,Collection:new c}})}.call(this),function(t){function e(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function n(t,e){for(var n=[];e>0;n[--e]=t);return n.join("")}var r=function(){return r.cache.hasOwnProperty(arguments[0])||(r.cache[arguments[0]]=r.parse(arguments[0])),r.format.call(null,r.cache[arguments[0]],arguments)};r.format=function(t,i){var o,s,a,l,c,u,h,p=1,d=t.length,_="",f=[];for(s=0;d>s;s++)if(_=e(t[s]),"string"===_)f.push(t[s]);else if("array"===_){if(l=t[s],l[2])for(o=i[p],a=0;a<l[2].length;a++){if(!o.hasOwnProperty(l[2][a]))throw r('[sprintf] property "%s" does not exist',l[2][a]);o=o[l[2][a]]}else o=l[1]?i[l[1]]:i[p++];if(/[^s]/.test(l[8])&&"number"!=e(o))throw r("[sprintf] expecting number but found %s",e(o));switch(l[8]){case"b":o=o.toString(2);break;case"c":o=String.fromCharCode(o);break;case"d":o=parseInt(o,10);break;case"e":o=l[7]?o.toExponential(l[7]):o.toExponential();break;case"f":o=l[7]?parseFloat(o).toFixed(l[7]):parseFloat(o);break;case"o":o=o.toString(8);break;case"s":o=(o=String(o))&&l[7]?o.substring(0,l[7]):o;break;case"u":o>>>=0;break;case"x":o=o.toString(16);break;case"X":o=o.toString(16).toUpperCase()}o=/[def]/.test(l[8])&&l[3]&&o>=0?"+"+o:o,u=l[4]?"0"==l[4]?"0":l[4].charAt(1):" ",h=l[6]-String(o).length,c=l[6]?n(u,h):"",f.push(l[5]?o+c:c+o)}return f.join("")},r.cache={},r.parse=function(t){for(var e=t,n=[],r=[],i=0;e;){if(null!==(n=/^[^\x25]+/.exec(e)))r.push(n[0]);else if(null!==(n=/^\x25{2}/.exec(e)))r.push("%");else{if(null===(n=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(e)))throw"[sprintf] huh?";if(n[2]){i|=1;var o=[],s=n[2],a=[];if(null===(a=/^([a-z_][a-z_\d]*)/i.exec(s)))throw"[sprintf] huh?";for(o.push(a[1]);""!==(s=s.substring(a[0].length));)if(null!==(a=/^\.([a-z_][a-z_\d]*)/i.exec(s)))o.push(a[1]);else{if(null===(a=/^\[(\d+)\]/.exec(s)))throw"[sprintf] huh?";o.push(a[1])}n[2]=o}else i|=2;if(3===i)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";r.push(n)}e=e.substring(n[0].length)}return r};var i=function(t,e,n){return n=e.slice(0),n.splice(0,0,t),r.apply(null,n)};t.sprintf=r,t.vsprintf=i}("undefined"!=typeof exports?exports:window),n("sprintf",function(t){return function(){var e;return e||t.sprintf}}(this)),!function(t){"object"==typeof module&&module.exports?module.exports=t():"function"==typeof n?n("timezone",t):this.tz=t()}(function(){function t(t,e,n){var r,i=e.day[1];do r=new Date(Date.UTC(n,e.month,Math.abs(i++)));while(e.day[0]<7&&r.getUTCDay()!=e.day[0]);return r={clock:e.clock,sort:r.getTime(),rule:e,save:6e4*e.save,offset:t.offset},r[r.clock]=r.sort+6e4*e.time,r.posix?r.wallclock=r[r.clock]+(t.offset+e.saved):r.posix=r[r.clock]-(t.offset+e.saved),r}function e(e,n,r){var i,o,s,a,l,c,u,h=e[e.zone],p=[],d=new Date(r).getUTCFullYear(),_=1;for(i=1,o=h.length;o>i&&!(h[i][n]<=r);i++);if(s=h[i],s.rules){for(c=e[s.rules],u=d+1;u>=d-_;--u)for(i=0,o=c.length;o>i;i++)c[i].from<=u&&u<=c[i].to?p.push(t(s,c[i],u)):c[i].to<u&&1==_&&(_=u-c[i].to);for(p.sort(function(t,e){return t.sort-e.sort}),i=0,o=p.length;o>i;i++)r>=p[i][n]&&p[i][p[i].clock]>s[p[i].clock]&&(a=p[i])}return a&&(a.abbrev=(l=/^(.*)\/(.*)$/.exec(s.format))?l[a.save?2:1]:s.format.replace(/%s/,a.rule.letter)),a||s}function n(t,n){return"UTC"==t.zone?n:(t.entry=e(t,"posix",n),n+t.entry.offset+t.entry.save)}function r(t,n){if("UTC"==t.zone)return n;var r,i;return t.entry=r=e(t,"wallclock",n),i=n-r.wallclock,i>0&&i<r.save?null:n-r.offset-r.save}function i(t,e,i){var o,s=+(i[1]+1),a=i[2]*s,l=c.indexOf(i[3].toLowerCase());if(l>9)e+=a*h[l-10];else{if(o=new Date(n(t,e)),7>l)for(;a;)o.setUTCDate(o.getUTCDate()+s),o.getUTCDay()==l&&(a-=s);else 7==l?o.setUTCFullYear(o.getUTCFullYear()+a):8==l?o.setUTCMonth(o.getUTCMonth()+a):o.setUTCDate(o.getUTCDate()+a);null==(e=r(t,o.getTime()))&&(e=r(t,o.getTime()+864e5*s)-864e5*s)}return e}function o(t){if(!t.length)return"0.0.23";var e,o,s,a,l,c=Object.create(this),h=[];for(e=0;e<t.length;e++)if(a=t[e],Array.isArray(a))e||isNaN(a[1])?a.splice.apply(t,[e--,1].concat(a)):l=a;else if(isNaN(a)){if(s=typeof a,"string"==s)~a.indexOf("%")?c.format=a:e||"*"!=a?!e&&(s=/^(\d{4})-(\d{2})-(\d{2})(?:[T\s](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d+))?)?(Z|(([+-])(\d{2}(:\d{2}){0,2})))?)?$/.exec(a))?(l=[],l.push.apply(l,s.slice(1,8)),s[9]?(l.push(s[10]+1),l.push.apply(l,s[11].split(/:/))):s[8]&&l.push(1)):/^\w{2,3}_\w{2}$/.test(a)?c.locale=a:(s=u.exec(a))?h.push(s):c.zone=a:l=a;else if("function"==s){if(s=a.call(c))return s}else if(/^\w{2,3}_\w{2}$/.test(a.name))c[a.name]=a;else if(a.zones){for(s in a.zones)c[s]=a.zones[s];for(s in a.rules)c[s]=a.rules[s]}}else e||(l=a);if(c[c.locale]||delete c.locale,c[c.zone]||delete c.zone,null!=l){if("*"==l)l=c.clock();else if(Array.isArray(l)){for(o=!l[7],e=0;11>e;e++)l[e]=+(l[e]||0);--l[1],l=Date.UTC.apply(Date.UTC,l.slice(0,8))+-l[7]*(36e5*l[8]+6e4*l[9]+1e3*l[10])}else l=Math.floor(l);if(!isNaN(l)){if(o&&(l=r(c,l)),null==l)return l;for(e=0,o=h.length;o>e;e++)l=i(c,l,h[e]);return c.format?(s=new Date(n(c,l)),c.format.replace(/%([-0_^]?)(:{0,3})(\d*)(.)/g,function(t,e,n,r,i){var o,a,u="0";if(o=c[i]){for(t=String(o.call(c,s,l,e,n.length)),"_"==(e||o.style)&&(u=" "),a="-"==e?0:o.pad||0;t.length<a;)t=u+t;for(a="-"==e?0:r||o.pad;t.length<a;)t=u+t;"N"==i&&a<t.length&&(t=t.slice(0,a)),"^"==e&&(t=t.toUpperCase())}return t})):l}}return function(){return c.convert(arguments)}}function s(t,e){var n,r,i;return r=new Date(Date.UTC(t.getUTCFullYear(),0)),n=Math.floor((t.getTime()-r.getTime())/864e5),r.getUTCDay()==e?i=0:(i=7-r.getUTCDay()+e,8==i&&(i=1)),n>=i?Math.floor((n-i)/7)+1:0}function a(t){var e,n,r;return n=t.getUTCFullYear(),e=new Date(Date.UTC(n,0)).getUTCDay(),r=s(t,1)+(e>1&&4>=e?1:0),r?53!=r||4==e||3==e&&29==new Date(n,1,29).getDate()?[r,t.getUTCFullYear()]:[1,t.getUTCFullYear()+1]:(n=t.getUTCFullYear()-1,e=new Date(Date.UTC(n,0)).getUTCDay(),r=4==e||3==e&&29==new Date(n,1,29).getDate()?53:52,[r,t.getUTCFullYear()-1])}var l={clock:function(){return+new Date},zone:"UTC",entry:{abbrev:"UTC",offset:0,save:0},UTC:1,z:function(t,e,n,r){var i,o,s=this.entry.offset+this.entry.save,a=Math.abs(s/1e3),l=[],c=3600;for(i=0;3>i;i++)l.push(("0"+Math.floor(a/c)).slice(-2)),a%=c,c/=60;return"^"!=n||s?("^"==n&&(r=3),3==r?(o=l.join(":"),o=o.replace(/:00$/,""),"^"!=n&&(o=o.replace(/:00$/,""))):r?(o=l.slice(0,r+1).join(":"),"^"==n&&(o=o.replace(/:00$/,""))):o=l.slice(0,2).join(""),o=(0>s?"-":"+")+o,o=o.replace(/([-+])(0)/,{_:" $1","-":"$1"}[n]||"$1$2")):"Z"},"%":function(){return"%"},n:function(){return"\n"},t:function(){return"	"},U:function(t){return s(t,0)},W:function(t){return s(t,1)},V:function(t){return a(t)[0]},G:function(t){return a(t)[1]},g:function(t){return a(t)[1]%100},j:function(t){return Math.floor((t.getTime()-Date.UTC(t.getUTCFullYear(),0))/864e5)+1},s:function(t){return Math.floor(t.getTime()/1e3)},C:function(t){return Math.floor(t.getUTCFullYear()/100)},N:function(t){return 1e6*(t.getTime()%1e3)},m:function(t){return t.getUTCMonth()+1},Y:function(t){return t.getUTCFullYear()},y:function(t){return t.getUTCFullYear()%100},H:function(t){return t.getUTCHours()},M:function(t){return t.getUTCMinutes()},S:function(t){return t.getUTCSeconds()},e:function(t){return t.getUTCDate()},d:function(t){return t.getUTCDate()},u:function(t){return t.getUTCDay()||7},w:function(t){return t.getUTCDay()},l:function(t){return t.getUTCHours()%12||12},I:function(t){return t.getUTCHours()%12||12},k:function(t){return t.getUTCHours()},Z:function(){return this.entry.abbrev},a:function(t){return this[this.locale].day.abbrev[t.getUTCDay()]},A:function(t){return this[this.locale].day.full[t.getUTCDay()]},h:function(t){return this[this.locale].month.abbrev[t.getUTCMonth()]},b:function(t){return this[this.locale].month.abbrev[t.getUTCMonth()]},B:function(t){return this[this.locale].month.full[t.getUTCMonth()]},P:function(t){return this[this.locale].meridiem[Math.floor(t.getUTCHours()/12)].toLowerCase()},p:function(t){return this[this.locale].meridiem[Math.floor(t.getUTCHours()/12)]},R:function(t,e){return this.convert([e,"%H:%M"])},T:function(t,e){return this.convert([e,"%H:%M:%S"])},D:function(t,e){return this.convert([e,"%m/%d/%y"])},F:function(t,e){return this.convert([e,"%Y-%m-%d"])},x:function(t,e){return this.convert([e,this[this.locale].date])},r:function(t,e){return this.convert([e,this[this.locale].time12||"%I:%M:%S"])},X:function(t,e){return this.convert([e,this[this.locale].time24])},c:function(t,e){return this.convert([e,this[this.locale].dateTime])},convert:o,locale:"en_US",en_US:{date:"%m/%d/%Y",time24:"%I:%M:%S %p",time12:"%I:%M:%S %p",dateTime:"%a %d %b %Y %I:%M:%S %p %Z",meridiem:["AM","PM"],month:{abbrev:"Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec".split("|"),full:"January|February|March|April|May|June|July|August|September|October|November|December".split("|")},day:{abbrev:"Sun|Mon|Tue|Wed|Thu|Fri|Sat".split("|"),full:"Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday".split("|")}}},c="Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|year|month|day|hour|minute|second|millisecond",u=new RegExp("^\\s*([+-])(\\d+)\\s+("+c+")s?\\s*$","i"),h=[36e5,6e4,1e3,1];return c=c.toLowerCase().split("|"),"delmHMSUWVgCIky".replace(/./g,function(t){l[t].pad=2}),l.N.pad=9,l.j.pad=3,l.k.style="_",l.l.style="_",l.e.style="_",function(){return l.convert(arguments)}}),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("ticking/datetime_tick_formatter",["underscore","backbone","common/has_properties","sprintf","timezone"],function(t,n,r,i,o){var s,a,l,c,u,h,p,d,_,f;return f=function(t){return i("%3dus",Math.floor(1e3*(t%1)))},u=function(t){var e,n;return e=Math.floor(1e3*(t/1e3%1)),n=Math.floor(1e3*(t%1)),i("%3d.%3dms",e,n)},_=function(t){var e,n;return e=new Date(t),n=e.getFullYear(),e.getMonth()>=7&&(n+=1),i("'%02d",n%100)},c=function(t){var e,n;return e=new Date(t),n=e.getFullYear(),e.getMonth()>=7&&(n+=1),i("%d",n)},l=function(t){return o(t,"%Y %m %d %H %M %S").split(/\s+/).map(function(t){return parseInt(t,10)})},d=function(e,n){return t.isFunction(n)?n(e):o(e,n)},s=function(n){function r(){return h=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type="DatetimeTickFormatter",r.prototype.format_order=["microseconds","milliseconds","seconds","minsec","minutes","hourmin","hours","days","months","years"],r.prototype.strip_leading_zeros=!0,r.prototype.initialize=function(t,e){var n,i,s,a,l,h,p,g;r.__super__.initialize.call(this,t,e),this._formats={microseconds:[f,u],milliseconds:["%3Nms","%S.%3Ns"],seconds:["%Ss"],minsec:[":%M:%S"],minutes:[":%M","%Mm"],hourmin:["%H:%M"],hours:["%Hh","%H:%M"],days:["%m/%d","%a%d"],months:["%m/%Y","%b%y"],years:["%Y",_,c]},this.formats={};for(i in this._formats){for(s=this._formats[i],l=[],h=o(new Date),p=0,g=s.length;g>p;p++)n=s[p],a=d(h,n).length,l.push(a);this.formats[i]=[l,s]}},r.prototype._get_resolution_str=function(t,e){var n,r;return n=1.1*t,r=.001>n?"microseconds":1>n?"milliseconds":60>n?e>=60?"minsec":"seconds":3600>n?e>=3600?"hourmin":"minutes":86400>n?"hours":2678400>n?"days":31536e3>n?"months":"years"},r.prototype.format=function(e,n,r,i,o){var s,a,c,u,h,p,_,f,g,m,v,y,b,w,x,k,j,C,T,M,N,S,A,E,O,P,z,D;if(null==n&&(n=null),null==r&&(r=null),null==i&&(i=.3),null==o&&(o=null),0===e.length)return[];if(x=Math.abs(e[e.length-1]-e[0])/1e3,v=o?o.resolution:x/(e.length-1),y=this._get_resolution_str(v,x),P=this.formats[y],M=P[0],u=P[1],c=u[0],r){for(h=[],_=N=0,z=M.length;z>=0?z>N:N>z;_=z>=0?++N:--N)M[_]*e.length<i*r&&h.push(this.formats[_]);h.length>0&&(c=t.last(h))}for(f=[],b=this.format_order.indexOf(y),C={},D=this.format_order,S=0,E=D.length;E>S;S++)a=D[S],C[a]=0;for(C.seconds=5,C.minsec=4,C.minutes=4,C.hourmin=3,C.hours=3,A=0,O=e.length;O>A;A++){j=e[A];try{T=l(j),w=d(j,c)}catch(F){s=F,console.log(s),console.log("Unable to convert tick for timestamp "+j),f.push("ERR");continue}for(p=!1,m=b;0===T[C[this.format_order[m]]]&&(m+=1,m!==this.format_order.length);){if(("minsec"===y||"hourmin"===y)&&!p){if("minsec"===y&&0===T[4]&&0!==T[5]||"hourmin"===y&&0===T[3]&&0!==T[4]){g=this.formats[this.format_order[b-1]][1][0],w=d(j,g);break}p=!0}g=this.formats[this.format_order[m]][1][0],w=d(j,g)}this.strip_leading_zeros?(k=w.replace(/^0+/g,""),k===w||""!==k&&isFinite(k[0])||(k="0"+k),f.push(k)):f.push(w)}return f},r.prototype.defaults=function(){return r.__super__.defaults.call(this)},r}(r),a=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(n.Collection),{Model:s,Collection:new a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/guide/datetime_axis",["backbone","./axis","ticking/datetime_ticker","ticking/datetime_tick_formatter"],function(t,n,r,i){var o,s,a,l,c,u;return a=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(n.View),s=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=a,n.prototype.type="DatetimeAxis",n.prototype.dinitialize=function(t,e){return n.__super__.dinitialize.call(this,t,e),null==this.get_obj("ticker")&&this.set_obj("ticker",r.Collection.create()),null==this.get_obj("formatter")?this.set_obj("formatter",i.Collection.create()):void 0},n}(n.Model),o=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(t.Collection),{Model:s,Collection:new o,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/guide/grid",["underscore","common/safebind","common/has_parent","renderer/properties","common/plot_widget"],function(t,n,r,i,o){var s,a,l,c,u,h,p;return c=i.line_properties,a=function(t){function r(){return u=r.__super__.constructor.apply(this,arguments)}return e(r,t),r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.grid_props=new c(this,null,"grid_")},r.prototype.render=function(){var t;return t=this.plot_view.ctx,t.save(),this._draw_grids(t),t.restore()},r.prototype.bind_bokeh_events=function(){return n(this,this.model,"change",this.request_render)},r.prototype._draw_grids=function(t){var e,n,r,i,o,s,a,l,c,u,h;if(this.grid_props.do_stroke)for(l=this.mget("grid_coords"),i=l[0],o=l[1],this.grid_props.set(t,this),e=s=0,c=i.length;c>=0?c>s:s>c;e=c>=0?++s:--s){for(u=this.plot_view.map_to_screen(i[e],"data",o[e],"data"),n=u[0],r=u[1],t.beginPath(),t.moveTo(Math.round(n[0]),Math.round(r[0])),e=a=1,h=n.length;h>=1?h>a:a>h;e=h>=1?++a:--a)t.lineTo(Math.round(n[e]),Math.round(r[e]));t.stroke()}},r}(o),s=function(n){function r(){return h=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=a,r.prototype.type="Grid",r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.register_property("computed_bounds",this._bounds,!1),this.add_dependencies("computed_bounds",this,["bounds"]),this.register_property("grid_coords",this._grid_coords,!1),this.add_dependencies("grid_coords",this,["computed_bounds","dimension","ticker"])},r.prototype._bounds=function(){var e,n,r,i,o,s,a,l;return n=this.get("dimension"),r=(n+1)%2,o=[this.get_obj("plot").get_obj("x_range"),this.get_obj("plot").get_obj("y_range")],a=null!=(l=this.get("bounds"))?l:"auto",i=[o[n].get("min"),o[n].get("max")],t.isArray(a)?(s=Math.min(a[0],a[1]),e=Math.max(a[0],a[1]),s<i[0]?s=i[0]:s>i[1]&&(s=null),e>i[1]?e=i[1]:e<i[0]&&(e=null)):(s=i[0],e=i[1]),[s,e]},r.prototype._grid_coords=function(){var t,e,n,r,i,o,s,a,l,c,u,h,p,d,_,f,g,m,v,y,b,w,x,k;for(l=this.get("dimension"),u=(l+1)%2,g=[this.get_obj("plot").get_obj("x_range"),this.get_obj("plot").get_obj("y_range")],f=g[l],i=g[u],x=this.get("computed_bounds"),m=x[0],a=x[1],y=Math.min(m,a),a=Math.max(m,a),m=y,v=this.get_obj("axis").get_obj("ticker").get_ticks(m,a,f,{}),d=f.get("min"),p=f.get("max"),n=i.get("min"),e=i.get("max"),r=[[],[]],c=b=0,k=v.length;k>=0?k>b:b>k;c=k>=0?++b:--b)if(v[c]!==d&&v[c]!==p){for(o=[],s=[],t=2,_=w=0;t>=0?t>w:w>t;_=t>=0?++w:--w)h=n+(e-n)/(t-1)*_,o.push(v[c]),s.push(h);r[l].push(o),r[u].push(s)}return r},r.prototype.display_defaults=function(){return{level:"underlay",grid_line_color:"#cccccc",grid_line_width:1,grid_line_alpha:1,grid_line_join:"miter",grid_line_cap:"butt",grid_line_dash:[],grid_line_dash_offset:0}},r}(r),l=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(Backbone.Collection),{Model:s,Collection:new l,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("ticking/basic_tick_formatter",["underscore","backbone","common/has_properties"],function(t,n,r){var i,o,s,a;return i=function(n){function r(){return s=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type="BasicTickFormatter",r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.register_property("scientific_limit_low",function(){return Math.pow(10,this.get("power_limit_low"))},!0),this.add_dependencies("scientific_limit_low",this,["power_limit_low"]),this.register_property("scientific_limit_high",function(){return Math.pow(10,this.get("power_limit_high"))},!0),this.add_dependencies("scientific_limit_high",this,["power_limit_high"]),this.last_precision=3},r.prototype.format=function(e){var n,r,i,o,s,a,l,c,u,h,p,d,_,f,g,m,v,y,b,w,x;if(0===e.length)return[];if(u=0,e.length>=2&&(u=Math.abs(e[1]-e[0])/1e4),o=!1,this.get("use_scientific"))for(h=0,f=e.length;f>h;h++)if(a=e[h],l=Math.abs(a),l>u&&(l>=this.scientific_limit_high||l<=this.scientific_limit_low)){o=!0;break}if(s=this.get("precision"),t.isNumber(s)){if(i=new Array(e.length),o)for(n=p=0,v=e.length;v>=0?v>p:p>v;n=v>=0?++p:--p)i[n]=e[n].toExponential(s);else for(n=d=0,y=e.length;y>=0?y>d:d>y;n=y>=0?++d:--d)i[n]=e[n].toPrecision(s).replace(/(\.[0-9]*?)0+$/,"$1").replace(/\.$/,"");return i}if("auto"===s)for(i=new Array(e.length),c=_=b=this.last_precision;15>=b?15>=_:_>=15;c=15>=b?++_:--_){if(r=!0,o){for(n=g=0,w=e.length;w>=0?w>g:g>w;n=w>=0?++g:--g)if(i[n]=e[n].toExponential(c),n>0&&i[n]===i[n-1]){r=!1;break}if(r)break}else{for(n=m=0,x=e.length;x>=0?x>m:m>x;n=x>=0?++m:--m)if(i[n]=e[n].toPrecision(c).replace(/(\.[0-9]*?)0+$/,"$1").replace(/\.$/,""),n>0&&i[n]===i[n-1]){r=!1;break}if(r)break}if(r)return this.last_precision=c,i}return i},r.prototype.defaults=function(){return{precision:"auto",use_scientific:!0,power_limit_high:5,power_limit_low:-3}},r}(r),o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n.Collection),{Model:i,Collection:new o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/guide/linear_axis",["underscore","backbone","./axis","ticking/basic_ticker","ticking/basic_tick_formatter"],function(t,n,r,i,o){var s,a,l,c,u,h;return l=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(r.View),a=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=l,n.prototype.type="LinearAxis",n.prototype.dinitialize=function(t,e){return n.__super__.dinitialize.call(this,t,e),null==this.get_obj("ticker")&&this.set_obj("ticker",i.Collection.create()),null==this.get_obj("formatter")?this.set_obj("formatter",o.Collection.create()):void 0},n}(r.Model),s=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(n.Collection),{Model:a,Collection:new s,View:l}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("renderer/overlay/box_selection",["underscore","common/has_parent","common/plot_widget"],function(t,n,r){var i,o,s,a,l,c;return o=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(t){return this.selecting=!1,this.xrange=[null,null],this.yrange=[null,null],r.__super__.initialize.call(this,t),this.plot_view.$el.find(".bokeh_canvas_wrapper").append(this.$el)},r.prototype.boxselect=function(t,e){return this.xrange=t,this.yrange=e,this.request_render()},r.prototype.startselect=function(){return this.selecting=!0,this.xrange=[null,null],this.yrange=[null,null],this.request_render()},r.prototype.stopselect=function(){return this.selecting=!1,this.xrange=[null,null],this.yrange=[null,null],this.request_render()},r.prototype.bind_bokeh_events=function(){return this.toolview=this.plot_view.tools[this.mget("tool").id],this.listenTo(this.toolview,"boxselect",this.boxselect),this.listenTo(this.toolview,"startselect",this.startselect),this.listenTo(this.toolview,"stopselect",this.stopselect)
            },r.prototype.render=function(){var e,n,r,i,o,s,a;return this.selecting?(o=this.xrange,a=this.yrange,t.any(t.map(o,t.isNullOrUndefined))||t.any(t.map(a,t.isNullOrUndefined))?(this.$el.removeClass("shading"),void 0):(n="",o?(i=this.plot_view.view_state.vx_to_sx(Math.min(o[0],o[1])),r=Math.abs(o[1]-o[0])):(i=0,r=this.plot_view.view_state.get("width")),n+="; left:"+i+"px; width:"+r+"px; ",a?(s=this.plot_view.view_state.vy_to_sy(Math.max(a[0],a[1])),e=Math.abs(a[1]-a[0])):(s=0,e=this.plot_view.view_state.get("height")),this.$el.addClass("shading"),n+="top:"+s+"px; height:"+e+"px",this.$el.attr("style",n))):(this.$el.removeClass("shading"),void 0)},r}(r),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=o,n.prototype.type="BoxSelection",n.prototype.defaults=function(){return{tool:null,level:"overlay"}},n}(n),s=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(Backbone.Collection),{Model:i,Collection:new s,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("source/column_data_source",["underscore","backbone","common/has_properties"],function(t,n,r){var i,o,s,a;return i=function(n){function r(){return s=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type="ColumnDataSource",r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.cont_ranges={},this.discrete_ranges={}},r.prototype.getcolumn=function(t){var e;return null!=(e=this.get("data")[t])?e:null},r.prototype.getcolumn_with_default=function(t){" returns the column, with any undefineds replaced with default";var e;return null!=(e=this.get("data")[t])?e:null},r.prototype.get_length=function(){var e;return e=this.get("data"),e[t.keys(e)[0]].length},r.prototype.columns=function(){return t.keys(this.get("data"))},r.prototype.datapoints=function(){var e,n,r,i,o,s,a,l,c,u;for(e=this.get("data"),r=t.keys(e),s=[],i=a=0,u=e[r[0]].length;u>=0?u>a:a>u;i=u>=0?++a:--a){for(o={},l=0,c=r.length;c>l;l++)n=r[l],o[n]=e[n][i];s.push(o)}return s},r.prototype.defaults=function(){return r.__super__.defaults.call(this)},r}(r),o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n.Collection),{Model:i,Collection:new o}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,r=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t};n("source/server_data_source",["underscore","backbone","common/has_properties"],function(e,n,i){var o,s,a,l,c;return a=function(t){var e,n,r,i;return e=!1,i=null,r=!1,n=function(){return e?r?console.log("already bound, ignoreing"):(console.log("busy, so doing it later"),r=!0,i.done(function(){return r=!1,n()})):(console.log("executing"),e=!0,i=t(),i.done(function(){return console.log("done, setting to false"),e=!1,i=null}))}},o=function(n){function i(){return this.heatmap_update=t(this.heatmap_update,this),this.line1d_update=t(this.line1d_update,this),this.initialize=t(this.initialize,this),l=i.__super__.constructor.apply(this,arguments)}return r(i,n),i.prototype.type="ServerDataSource",i.prototype.initialize=function(t,e){return i.__super__.initialize.call(this,t,e),this.callbacks={}},i.prototype.stoplistening_for_updates=function(t){var e,n,r,i,o;if(this.callbacks[t.get("id")]){for(i=this.callbacks[t.get("id")],o=[],n=0,r=i.length;r>n;n++)e=i[n],o.push(this.stopListening.apply(this,e));return o}},i.prototype.listen_for_line1d_updates=function(t,n,r,i,o,s){var a,l;return this.stoplistening_for_updates(t),this.line1d_update(t,n,r,i,o,s),l=e.throttle(this.line1d_update,300),a=function(){return l(t,n,r,i,o,s)},this.listenTo(r,"change",a),this.listenTo(n,"change",a),this.callbacks[t.get("id")]=[[r,"change",a],[n,"change",a]]},i.prototype.line1d_update=function(t,n,r,i,o,s){var a,l,c,u,h,p,d;return a=this.get("data_url"),u=this.get("owner_username"),p=this.get_base().Config.prefix,d=""+p+"/bokeh/data/"+u+a,c=(r.get("end")-r.get("start"))/2,c=Math.floor(c),l=[n.get("start"),n.get("end")],e.any(e.map(l,function(t){return e.isNaN(t)}))&&(l="auto"),h=[i,o,s,l,c],h=JSON.stringify(h),$.ajax({dataType:"json",url:d,xhrField:{withCredentials:!0},success:function(e){return"auto"===l&&n.set({start:e.domain_limit[0],end:e.domain_limit[1]},{silent:!0}),t.set("data",e.data)},data:{downsample_function:"line1d",downsample_parameters:h}})},i.prototype.listen_for_heatmap_updates=function(t,e,n,r,i){var o,s,l,c,u,h=this;for(this.stoplistening_for_updates(t),o=a(function(){return h.heatmap_update(t,e,n,r,i)}),o(),this.callbacks[t.get("id")]=[],u=[e,n,r,i],l=0,c=u.length;c>l;l++)s=u[l],this.listenTo(s,"change",o),this.callbacks[t.get("id")].push([s,"change",o]);return this.listenTo(this,"change:index_slice",o),this.callbacks[t.get("id")].push([this,"change:index_slice",o]),this.listenTo(this,"change:data_slice",o),this.callbacks[t.get("id")].push([this,"change:data_slice",o]),null},i.prototype.heatmap_update=function(t,n,r,i,o){var s,a,l,c,u,h,p,d,_,f,g,m,v,y,b;return a=this.get("data_url"),d=this.get("owner_username"),f=this.get_base().Config.prefix,g=""+f+"/bokeh/data/"+d+a,v=i.get("end")-i.get("start"),b=o.get("end")-o.get("start"),m=[n.get("start"),n.get("end")],y=[r.get("start"),r.get("end")],u=this.get("data").global_x_range,h=this.get("data").global_y_range,l=this.get("data").global_offset_x[0],c=this.get("data").global_offset_y[0],p=this.get("index_slice"),s=this.get("data_slice"),_=[u,h,l,c,m,y,v,b,p,s,this.get("transpose")],_=JSON.stringify(_),$.ajax({dataType:"json",url:g,xhrField:{withCredentials:!0},success:function(n){var r;return r=e.clone(t.get("data")),e.extend(r,n),t.set("data",r)},data:{downsample_function:"heatmap",downsample_parameters:_}})},i}(i),s=function(t){function e(){return c=e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.model=o,e}(n.Collection),{Model:o,Collection:new s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("tool/tool",["underscore","common/plot_widget","common/has_parent"],function(t,n,r){var i,o,s,a;return o=function(n){function r(){return s=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t)},r.prototype.bind_bokeh_events=function(){var e,n,r,i,o=this;return e=this.plot_view.eventSink,r={eventBasename:this.cid},i=t.extend(r,this.evgen_options),n=new this.eventGeneratorClass(i),n.bind_bokeh_events(this.plot_view,e),t.each(this.tool_events,function(t,n){var r,i;return r=""+o.cid+":"+n,i=function(e){return o[t](e)},e.on(r,i)}),this.evgen=n,{render:function(){}}},r}(n),i=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.display_defaults=function(){return{level:"tool"}},n}(r),{Model:i,View:o}})}.call(this),function(){n("tool/event_generators",[],function(){var t,e,n,r;return r=function(t){var e,n,r;return n=$(t.currentTarget).offset(),e=null!=n?n.left:0,r=null!=n?n.top:0,t.bokehX=t.pageX-e,t.bokehY=t.pageY-r},n=function(){function t(t){this.restrict_to_innercanvas=t.restrict_to_innercanvas,this.options=t,this.toolName=this.options.eventBasename,this.dragging=!1,this.basepoint_set=!1,this.button_activated=!1,this.tool_active=!1}return t.prototype.bind_bokeh_events=function(t,e){var n,i=this;return n=this.toolName,this.plotview=t,this.eventSink=e,this.plotview.moveCallbacks.push(function(t){return i.dragging&&i.tool_active?(r(t),i.basepoint_set?(e.trigger(""+n+":UpdatingMouseMove",t),t.preventDefault(),t.stopPropagation()):(i.dragging=!0,i.basepoint_set=!0,e.trigger(""+n+":SetBasepoint",t))):void 0}),this.plotview.moveCallbacks.push(function(t,e,n){var o,s,a,l,c,u;if(i.dragging){if(r(t),o=i.plotview.view_state.get("inner_range_horizontal"),s=i.plotview.view_state.get("inner_range_vertical"),e=i.plotview.view_state.sx_to_vx(t.bokehX),n=i.plotview.view_state.sy_to_vy(t.bokehY),i.restrict_to_innercanvas?(l=o.get("start"),a=o.get("end"),u=s.get("start"),c=s.get("end")):(l=0,a=i.plotview.view_state.get("outer_width"),u=0,c=i.plotview.view_state.get("outer_height")),l>e||e>a)return i._stop_drag(t),!1;if(u>n||n>c)return i._stop_drag(t),!1}}),$(document).bind("keydown",function(t){return 27===t.keyCode?e.trigger("clear_active_tool"):void 0}),$(document).bind("keyup",function(t){return t[i.options.keyName]?void 0:i._stop_drag(t)}),this.plotview.canvas_wrapper.bind("mousedown",function(t){var e;return e=!1,i.button_activated||i.eventSink.active===i.toolName?e=!0:i.eventSink.active||(null!==i.options.keyName||t.ctrlKey||t.altKey||t.metaKey||t.shiftKey?t[i.options.keyName]===!0&&(e=!0):e=!0),e?(i._start_drag(),!1):void 0}),this.plotview.canvas_wrapper.bind("mouseup",function(t){return i.button_activated?(i._stop_drag(t),!1):void 0}),this.plotview.canvas_wrapper.bind("mouseleave",function(t){return i.button_activated?(i._stop_drag(t),!1):void 0}),this.$tool_button=$("<button class='btn btn-small'> "+this.options.buttonText+" </button>"),this.plotview,this.plotview.$el.find(".button_bar").append(this.$tool_button),this.$tool_button.click(function(){return i.button_activated?e.trigger("clear_active_tool"):e.trigger("active_tool",n)}),e.on(""+n+":deactivated",function(){return i.tool_active=!1,i.button_activated=!1,i.$tool_button.removeClass("active")}),e.on(""+n+":activated",function(){return i.tool_active=!0,i.$tool_button.addClass("active"),i.button_activated=!0}),e},t.prototype.hide_button=function(){return this.$tool_button.hide()},t.prototype._start_drag=function(){return this._activated_with_button=this.button_activated,this.eventSink.trigger("active_tool",this.toolName),this.dragging||(this.dragging=!0,this.button_activated||this.$tool_button.addClass("active"),null==this.options.cursor)?void 0:this.plotview.canvas_wrapper.css("cursor",this.options.cursor)},t.prototype._stop_drag=function(t){return this.basepoint_set=!1,this.dragging&&(this.dragging=!1,this._activated_with_button===!1&&this.options.auto_deactivate===!0&&this.eventSink.trigger("clear_active_tool"),this.button_activated||this.$tool_button.removeClass("active"),null!=this.options.cursor&&this.plotview.canvas_wrapper.css("cursor",""),r(t),this.eventSink.trigger(""+this.options.eventBasename+":DragEnd",t)),this._activated_with_button=null},t}(),e=function(){function t(t){this.options=t,this.toolName=this.options.eventBasename,this.dragging=!1,this.basepoint_set=!1,this.button_activated=!1,this.tool_active=!1}return t.prototype.bind_bokeh_events=function(t,e){var n,i,o,s=this;return o=this.toolName,this.plotview=t,this.eventSink=e,this.plotview.canvas_wrapper.bind("mousewheel",function(t,n){return s.tool_active||!s.eventSink.active&&t.shiftKey?(r(t),t.delta=n,e.trigger(""+o+":zoom",t),t.preventDefault(),t.stopPropagation()):void 0}),$(document).bind("keydown",function(t){return 27===t.keyCode?e.trigger("clear_active_tool"):void 0}),this.plotview.$el.bind("mousein",function(){return e.trigger("clear_active_tool")}),this.plotview.$el.bind("mouseover",function(){return s.mouseover_count+=1}),this.$tool_button=$("<button class='btn btn-small'> "+this.options.buttonText+" </button>"),this.plotview.$el.find(".button_bar").append(this.$tool_button),this.$tool_button.click(function(){return s.button_activated?e.trigger("clear_active_tool"):(e.trigger("active_tool",o),s.button_activated=!0)}),n=function(t){return t.setAttribute("old_overflow",t.style.overflow),t.style.overflow="hidden",t!==document.body?n(t.parentNode):void 0},i=function(t){return t.style.overflow=t.getAttribute("old_overflow"),t!==document.body?i(t.parentNode):void 0},e.on(""+o+":deactivated",function(){return s.tool_active=!1,s.button_activated=!1,s.$tool_button.removeClass("active"),document.body.style.overflow=s.old_overflow}),e.on(""+o+":activated",function(){return s.tool_active=!0,s.$tool_button.addClass("active")}),e},t.prototype.hide_button=function(){return this.$tool_button.hide()},t}(),t=function(){function t(t){this.options=t,this.toolName=this.options.eventBasename,this.button_activated=!1,this.tool_active=!1}return t.prototype.bind_bokeh_events=function(t,e){var n,r,i,o=this;return i=this.toolName,this.plotview=t,this.eventSink=e,$(document).bind("keydown",function(t){return 27===t.keyCode?e.trigger("clear_active_tool"):void 0}),this.plotview.$el.bind("mouseover",function(){return o.mouseover_count+=1}),this.$tool_button=$("<button class='btn btn-small'> "+this.options.buttonText+" </button>"),this.plotview.$el.find(".button_bar").append(this.$tool_button),this.$tool_button.click(function(){return o.button_activated?e.trigger("clear_active_tool"):(e.trigger("active_tool",i),o.button_activated=!0)}),n=function(t){return t.setAttribute("old_overflow",t.style.overflow),t.style.overflow="hidden",t!==document.body?n(t.parentNode):void 0},r=function(t){return t.style.overflow=t.getAttribute("old_overflow"),t!==document.body?r(t.parentNode):void 0},e.on(""+i+":deactivated",function(){return o.tool_active=!1,o.button_activated=!1,o.$tool_button.removeClass("active"),document.body.style.overflow=o.old_overflow}),e.on(""+i+":activated",function(){return o.tool_active=!0,o.$tool_button.addClass("active")}),e},t.prototype.hide_button=function(){return this.$tool_button.hide()},t}(),{TwoPointEventGenerator:n,OnePointWheelEventGenerator:e,ButtonEventGenerator:t}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("tool/box_select_tool",["underscore","backbone","./tool","./event_generators"],function(n,r,i,o){var s,a,l,c,u,h,p;return c=o.TwoPointEventGenerator,a=function(r){function i(){return u=i.__super__.constructor.apply(this,arguments)}return e(i,r),i.prototype.initialize=function(t){return i.__super__.initialize.call(this,t),this.select_every_mousemove=this.mget("select_every_mousemove")},i.prototype.bind_bokeh_events=function(){var t,e,n,r,o,s;for(i.__super__.bind_bokeh_events.call(this),o=this.mget_obj("renderers"),s=[],n=0,r=o.length;r>n;n++)t=o[n],e=this.plot_view.renderers[t.id],this.listenTo(e.xrange(),"change",this.select_callback),this.listenTo(e.yrange(),"change",this.select_callback),s.push(this.listenTo(t,"change",this.select_callback));return s},i.prototype.eventGeneratorClass=c,i.prototype.toolType="BoxSelectTool",i.prototype.evgen_options={keyName:"shiftKey",buttonText:"Select",cursor:"crosshair",restrict_to_innercanvas:!0},i.prototype.tool_events={SetBasepoint:"_start_selecting",UpdatingMouseMove:"_selecting",deactivated:"_stop_selecting",DragEnd:"_dragend"},i.prototype.pause=function(){return null},i.prototype.view_coords=function(t,e){var n,r,i;return i=[this.plot_view.view_state.sx_to_vx(t),this.plot_view.view_state.sy_to_vy(e)],n=i[0],r=i[1],[n,r]},i.prototype._stop_selecting=function(){return this.trigger("stopselect"),this.basepoint_set=!1,this.plot_view.unpause()},i.prototype._start_selecting=function(t){var e,n,r;return this.plot_view.pause(),this.trigger("startselect"),r=this.view_coords(t.bokehX,t.bokehY),e=r[0],n=r[1],this.mset({start_vx:e,start_vy:n,current_vx:null,current_vy:null}),this.basepoint_set=!0},i.prototype._get_selection_range=function(){var t,e;return this.mget("select_x")?(t=[this.mget("start_vx"),this.mget("current_vx")],t=[n.min(t),n.max(t)]):t=null,this.mget("select_y")?(e=[this.mget("start_vy"),this.mget("current_vy")],e=[n.min(e),n.max(e)]):e=null,[t,e]},i.prototype._selecting=function(t){var e,n,r,i;return r=this.view_coords(t.bokehX,t.bokehY),e=r[0],n=r[1],this.mset({current_vx:e,current_vy:n}),i=this._get_selection_range(),this.xrange=i[0],this.yrange=i[1],this.trigger("boxselect",this.xrange,this.yrange),this.select_every_mousemove&&this._select_data(),this.plot_view.render_overlays(!0),null},i.prototype._dragend=function(){return this._select_data()},i.prototype._select_data=function(){var e,r,i,o,s,a,l,c,u,h,p,d,_,f,g,m;if(this.basepoint_set){for(a={type:"rect",vx0:this.xrange[0],vx1:this.xrange[1],vy0:this.yrange[0],vy1:this.yrange[1]},o={},i={},g=this.mget_obj("renderers"),p=0,_=g.length;_>p;p++)c=g[p],e=c.get_obj("data_source"),o[e.id]=e;for(m=this.mget_obj("renderers"),d=0,f=m.length;f>d;d++)c=m[d],r=c.get_obj("data_source").id,n.setdefault(i,r,[]),u=this.plot_view.renderers[c.id].hit_test(a),i[r].push(u);for(l in i)t.call(i,l)&&(h=i[l],u=n.intersection.apply(n,h),s=o[l],s.save({selected:u},{patch:!0}),this.plot_view.unpause());return null}},i}(i.View),s=function(t){function r(){return h=r.__super__.constructor.apply(this,arguments)}return e(r,t),r.prototype.default_view=a,r.prototype.type="BoxSelectTool",r.prototype.defaults=function(){return n.extend(r.__super__.defaults.call(this),{renderers:[],select_x:!0,select_y:!0,select_every_mousemove:!1,data_source_options:{}})},r.prototype.display_defaults=function(){return r.__super__.display_defaults.call(this)},r}(i.Model),l=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(r.Collection),{Model:s,Collection:new l,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("tool/box_zoom_tool",["underscore","backbone","./tool","./event_generators"],function(t,n,r,i){var o,s,a,l,c,u,h;return l=i.TwoPointEventGenerator,s=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t)},r.prototype.bind_bokeh_events=function(){return r.__super__.bind_bokeh_events.call(this)},r.prototype.eventGeneratorClass=l,r.prototype.toolType="BoxZoomTool",r.prototype.evgen_options={keyName:"ctrlKey",buttonText:"Box Zoom",cursor:"crosshair",auto_deactivate:!0,restrict_to_innercanvas:!0},r.prototype.tool_events={SetBasepoint:"_start_selecting",UpdatingMouseMove:"_selecting",DragEnd:"_dragend"},r.prototype.pause=function(){return null},r.prototype.view_coords=function(t,e){var n,r,i;return i=[this.plot_view.view_state.sx_to_vx(t),this.plot_view.view_state.sy_to_vy(e)],n=i[0],r=i[1],[n,r]},r.prototype._start_selecting=function(t){var e,n,r;return this.plot_view.pause(),this.trigger("startselect"),r=this.view_coords(t.bokehX,t.bokehY),e=r[0],n=r[1],this.mset({start_vx:e,start_vy:n,current_vx:null,current_vy:null}),this.basepoint_set=!0},r.prototype._get_selection_range=function(){var e,n;return this.mget("select_x")?(e=[this.mget("start_vx"),this.mget("current_vx")],e=[t.min(e),t.max(e)]):e=null,this.mget("select_y")?(n=[this.mget("start_vy"),this.mget("current_vy")],n=[t.min(n),t.max(n)]):n=null,[e,n]},r.prototype._selecting=function(t){var e,n,r,i;return r=this.view_coords(t.bokehX,t.bokehY),e=r[0],n=r[1],this.mset({current_vx:e,current_vy:n}),i=this._get_selection_range(),this.xrange=i[0],this.yrange=i[1],this.trigger("boxselect",this.xrange,this.yrange),this.plot_view.render_overlays(!0),null},r.prototype._dragend=function(){return this._select_data(),this.basepoint_set=!1,this.plot_view.unpause(),this.trigger("stopselect")},r.prototype._select_data=function(){var t,e,n,r,i,o,s;if(this.basepoint_set)return o=this.plot_view.xmapper.v_map_from_target([this.xrange[0],this.xrange[1]]),e=o[0],t=o[1],s=this.plot_view.ymapper.v_map_from_target([this.yrange[0],this.yrange[1]]),r=s[0],n=s[1],i={xr:{start:e,end:t},yr:{start:r,end:n}},this.plot_view.update_range(i)},r}(r.View),o=function(n){function r(){return u=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=s,r.prototype.type="BoxZoomTool",r.prototype.defaults=function(){return t.extend(r.__super__.defaults.call(this),{renderers:[],select_x:!0,select_y:!0,select_every_mousemove:!1,data_source_options:{}})},r.prototype.display_defaults=function(){return r.__super__.display_defaults.call(this)},r}(r.Model),a=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n.Collection),{Model:o,Collection:new a,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("tool/crosshair_tool",["underscore","backbone","./tool","./event_generators","sprintf"],function(t,n,r,i,o){var s,a,l,c,u,h,p;return c=i.TwoPointEventGenerator,a=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.active=!1},n.prototype.bind_events=function(t){return n.__super__.bind_events.call(this,t)},n.prototype.eventGeneratorClass=c,n.prototype.toolType="CrosshairTool",n.prototype.evgen_options={keyName:"",buttonText:"Crosshair",cursor:"crosshair"},n.prototype.tool_events={activated:"_activate",deactivated:"_deactivate",UpdatingMouseMove:"_drag",SetBasepoint:"_set_base_point"},n.prototype.render=function(){var t,e,n,r;if(this.active)return e=this.plot_view.ctx,n=this.plot_view.view_state.get("canvas_width"),t=this.plot_view.view_state.get("canvas_height"),r=1,e.save(),e.strokeStyle="red",e.globalAlpha=.7,e.lineWidth=r,e.setLineDash([]),e.beginPath(),e.moveTo(0,this.y),e.lineTo(n,this.y),console.log(this.x,this.y),e.moveTo(this.x,0),e.lineTo(this.x,t),e.stroke(),e.restore()},n.prototype.mouse_coords=function(t,e,n){return[e,n]},n.prototype._activate=function(){var t,e,n;if(!this.active)return this.active=!0,this.popup=$('<div class="resize_popup pull-right"\nstyle="border-radius: 10px; background-color: lightgrey; padding:3px 8px; font-size: 14px;\nposition:absolute; right:20px; top: 20px; "></div>'),t=this.plot_view.$el.find(".bokeh_canvas_wrapper"),this.popup.appendTo(t),e=this.plot_view.view_state.get("outer_height"),n=this.plot_view.view_state.get("outer_width"),this.popup.text("x: 0 y:0"),this.plot_view.$el.css("cursor","crosshair"),null},n.prototype._deactivate=function(){return this.active=!1,this.plot_view.$el.css("cursor","default"),this.popup.remove(),this.request_render(),this.plot_view.request_render(),null},n.prototype._set_base_point=function(t){var e;return e=this.mouse_coords(t,t.bokehX,t.bokehY),this.x=e[0],this.y=e[1],null},n.prototype._drag=function(t){var e,n,r;return this.plot_view.pause(),r=this.mouse_coords(t,t.bokehX,t.bokehY),this.x=r[0],this.y=r[1],e=o("%.4f",this.plot_view.xmapper.map_from_target(x)),n=o("%.4f",this.plot_view.ymapper.map_from_target(y)),this.popup.text("x: "+e+" y: "+n),this.request_render(),this.plot_view.request_render(),this.plot_view.unpause(!0),null},n}(r.View),s=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=a,n.prototype.type="CrosshairTool",n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(r.Model),l=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(n.Collection),{Model:s,Collection:new l,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("tool/data_range_box_select_tool",["underscore","backbone","./box_select_tool"],function(t,n,r){var i,o,s,a,l,c;return o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.bind_bokeh_events=function(){return tool.ToolView.prototype.bind_bokeh_events.call(this)},n.prototype._select_data=function(){var t,e,n,r,i,o;return i=this.plot_view.mapper.map_from_target(this.xrange[0],this.yrange[0]),e=i[0],r=i[1],o=this.plot_view.mapper.map_from_target(this.xrange[1],this.yrange[1]),t=o[0],n=o[1],this.mset("xselect",[e,t]),this.mset("yselect",[r,n]),this.model.save()},n}(r.View),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=o,n.prototype.type="DataRangeBoxSelectTool",n}(r.Model),s=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(n.Collection),{Model:i,Collection:new s,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("tool/embed_tool",["underscore","backbone","./tool","./event_generators"],function(t,n,r,i){var o,s,a,l,c,u,h,p;return o=i.ButtonEventGenerator,c=function(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&#39;")},a=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t)},n.prototype.eventGeneratorClass=o,n.prototype.evgen_options={buttonText:"Embed Html"},n.prototype.toolType="EmbedTool",n.prototype.tool_events={activated:"_activated",deactivated:"_close_modal"},n.prototype._activated=function(){var t,e,n,r,i,o,s=this;return console.log("EmbedToolView._activated"),window.tool_view=this,i=this.plot_model.get("id"),n=this.plot_model.get("doc"),e=this.plot_model.get("docapikey"),t=this.plot_model.get("baseurl"),o=c(this.plot_model.get("script_inject_snippet")),r='<div id="embedModal" class="bokeh">\n  <div  class="modal" role="dialog" aria-labelledby="embedLabel" aria-hidden="true">\n    <div class="modal-header">\n      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>\n      <h3 id="dataConfirmLabel"> HTML Embed code</h3></div><div class="modal-body">\n      <div class="modal-body">\n        '+o+'\n      </div>\n    </div>\n    <div class="modal-footer">\n      <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>\n    </div>\n  </div>\n</div>',$("body").append(r),$("#embedModal > .modal").on("hidden",function(){return s.plot_view.eventSink.trigger("clear_active_tool")}),$("#embedModal > .modal").modal({show:!0})},n.prototype._close_modal=function(){return $("#embedModal").remove(),$("#embedModal > .modal").remove()},n}(r.View),s=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=a,n.prototype.type="EmbedTool",n}(r.Model),l=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(n.Collection),{Model:s,Collection:new l,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("tool/hover_tool",["underscore","backbone","sprintf","./tool"],function(t,n,r,i){var o,s,a,l,c,u,h,p;return l=function(t){var e,n,r,i,o;return"#"===t.substr(0,1)?t:(n=/(.*?)rgb\((\d+), (\d+), (\d+)\)/.exec(t),i=parseInt(n[2]),r=parseInt(n[3]),e=parseInt(n[4]),o=e|r<<8|i<<16,n[1]+"#"+o.toString(16))},c=function(t){return"string"==typeof t?t:Math.floor(t)===t?r("%d",t):Math.abs(t)>.1&&Math.abs(t)<1e3?r("%0.3f",t):r("%0.3e",t)},s=function(n){function r(){return u=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.div=$('<div class="bokeh_tooltip" />').appendTo("body"),this.div.hide(),this.active=!1},r.prototype.bind_bokeh_events=function(){var t,e=this;return t="hover_tool",this.tool_button=$("<button class='btn btn-small'> Hover </button>"),this.plot_view.$el.find(".button_bar").append(this.tool_button),this.tool_button.click(function(){return e.active?e.plot_view.eventSink.trigger("clear_active_tool"):e.plot_view.eventSink.trigger("active_tool",t)}),this.plot_view.eventSink.on(""+t+":deactivated",function(){return e.active=!1,e.tool_button.removeClass("active"),e.div.hide()}),this.plot_view.eventSink.on(""+t+":activated",function(){return e.active=!0,e.tool_button.addClass("active")}),this.plot_view.canvas.bind("mousemove",function(t){var n,r,i,o,s,a,l,c,u,h,p,d;if(e.active)return o=$(t.currentTarget).offset(),i=null!=o?o.left:0,s=null!=o?o.top:0,t.bokehX=t.pageX-i,t.bokehY=t.pageY-s,d=e.view_coords(t.bokehX,t.bokehY),a=d[0],l=d[1],n=e.plot_view.view_state.get("inner_range_horizontal"),r=e.plot_view.view_state.get("inner_range_vertical"),u=n.get("start"),c=n.get("end"),p=r.get("start"),h=r.get("end"),u>a||a>c||p>l||l>h?(e.div.hide(),void 0):e._select(a,l,t)}),this.plot_view.canvas_wrapper.css("cursor","crosshair")},r.prototype.view_coords=function(t,e){var n,r,i;return i=[this.plot_view.view_state.sx_to_vx(t),this.plot_view.view_state.sy_to_vy(e)],n=i[0],r=i[1],[n,r]},r.prototype._select=function(e,n,r){var i,o,s,a,u,h,p,d,_,f,g,m,v,y,b,w,x,k,j,C,T,M,N,S,A,E,O,P,z,D,F,q,B,I,L,R;for(g={type:"point",vx:e,vy:n},E=this.plot_view.xmapper.map_from_target(e),O=this.plot_view.ymapper.map_from_target(n),d={},p={},q=this.mget_obj("renderers"),P=0,D=q.length;D>P;P++)x=q[P],u=x.get_obj("data_source"),d[u.id]=u;for(B=this.mget_obj("renderers"),z=0,F=B.length;F>z;z++)if(x=B[z],h=x.get_obj("data_source").id,t.setdefault(p,h,[]),j=this.plot_view.renderers[x.id].hit_test(g),_=d[h],null!==j){if(j.length>0){v=j[0],this.div.empty(),M=$("<table></table>"),I=this.mget("tooltips");for(y in I){if(A=I[y],k=$("<tr></tr>"),k.append($("<td class='bokeh_tooltip_row_label'>"+y+": </td>")),N=$("<td class='bokeh_tooltip_row_value'></td>"),A.indexOf("$color")>=0){if(L=A.match(/\$color(\[.*\])?:(\w*)/),b=L[0],w=L[1],i=L[2],s=_.getcolumn(i),null==s){C=$("<span>"+i+" unknown</span>"),N.append(C);continue}if(m=(null!=w?w.indexOf("hex"):void 0)>=0,T=(null!=w?w.indexOf("swatch"):void 0)>=0,o=s[v],null==o){C=$("<span>(null)</span>"),N.append(C);continue}m&&(o=l(o)),C=$("<span>"+o+"</span>"),N.append(C),T&&(C=$("<span class='bokeh_tooltip_color_block'> </span>"),C.css({backgroundColor:o})),N.append(C)}else{for(A=A.replace("$index",""+v),A=A.replace("$x",""+c(E)),A=A.replace("$y",""+c(O)),A=A.replace("$vx",""+e),A=A.replace("$vy",""+n),A=A.replace("$sx",""+r.bokehX),A=A.replace("$sy",""+r.bokehY);A.indexOf("@")>=0;){if(R=A.match(/(@)(\w*)/),b=R[0],S=R[1],a=R[2],s=_.getcolumn(a),null==s){A=A.replace(a,""+a+" unknown");break}s=_.getcolumn(a),f=s[v],A="number"==typeof f?A.replace(b,""+c(f)):A.replace(b,""+f)}C=$("<span>"+A+"</span>"),N.append(C)}k.append(N),M.append(k)}this.div.append(M),this.div.css({top:r.pageY-this.div.height()/2,left:r.pageX+18}),this.div.show();break}this.div.hide(),p[h].push(j)}return null},r}(i.View),o=function(n){function r(){return h=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=s,r.prototype.type="HoverTool",r.prototype.dinitialize=function(t,e){var n;return r.__super__.dinitialize.call(this,t,e),this.set("renderers",function(){var t,e,r,i;for(r=this.get_obj("plot").get("renderers"),i=[],t=0,e=r.length;e>t;t++)n=r[t],"Glyph"===n.type&&i.push(n);return i}.call(this))},r.prototype.defaults=function(){return t.extend(r.__super__.defaults.call(this),{renderers:[],tooltips:{index:"$index","data (x, y)":"($x, $y)","canvas (x, y)":"($sx, $sy)"}})},r.prototype.display_defaults=function(){return r.__super__.display_defaults.call(this)
            },r}(i.Model),a=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n.Collection),{Model:o,Collection:new a,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("tool/pan_tool",["underscore","backbone","./tool","./event_generators"],function(t,n,r,i){var o,s,a,l,c,u,h;return l=i.TwoPointEventGenerator,window.render_count=0,s=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){var e;return n.__super__.initialize.call(this,t),e=this.mget("dimensions"),0===e.length?console.log("WARN: pan tool given empty dimensions"):1===e.length?"width"===e[0]?this.evgen_options.buttonText="Pan (x-axis)":"height"===e[0]?this.evgen_options.buttonText="Pan (y-axis)":console.log("WARN: pan tool given unrecognized dimensions: "+e):2!==e.length?console.log("WARN: pan tool given more than two dimensions: "+e):e.indexOf("width")<0||e.indexOf("height")<0?console.log("WARN: pan tool given unrecognized dimensions: "+e):void 0},n.prototype.bind_bokeh_events=function(){return n.__super__.bind_bokeh_events.call(this)},n.prototype.eventGeneratorClass=l,n.prototype.toolType="PanTool",n.prototype.evgen_options={keyName:null,buttonText:"Pan",cursor:"move",auto_deactivate:!0,restrict_to_innercanvas:!0},n.prototype.tool_events={UpdatingMouseMove:"_drag",SetBasepoint:"_set_base_point"},n.prototype.mouse_coords=function(t,e,n){var r,i,o;return o=[this.plot_view.view_state.sx_to_vx(e),this.plot_view.view_state.sy_to_vy(n)],r=o[0],i=o[1],[r,i]},n.prototype._set_base_point=function(t){var e;return e=this.mouse_coords(t,t.bokehX,t.bokehY),this.x=e[0],this.y=e[1],null},n.prototype._drag=function(t){var e,n,r,i,o,s,a,l,c,u,h,p,d,_,f,g,m,v,y,b;return y=this.mouse_coords(t,t.bokehX,t.bokehY),c=y[0],_=y[1],u=c-this.x,f=_-this.y,b=[c,_],this.x=b[0],this.y=b[1],p=this.plot_view.view_state.get("inner_range_horizontal"),s=p.get("start")-u,o=p.get("end")-u,m=this.plot_view.view_state.get("inner_range_vertical"),l=m.get("start")-f,a=m.get("end")-f,e=this.mget("dimensions"),e.indexOf("width")>-1?(d=this.plot_view.xmapper.map_from_target(s),h=this.plot_view.xmapper.map_from_target(o),r=-u):(d=this.plot_view.xmapper.map_from_target(p.get("start")),h=this.plot_view.xmapper.map_from_target(p.get("end")),r=0),e.indexOf("height")>-1?(v=this.plot_view.ymapper.map_from_target(l),g=this.plot_view.ymapper.map_from_target(a),i=f):(v=this.plot_view.ymapper.map_from_target(m.get("start")),g=this.plot_view.ymapper.map_from_target(m.get("end")),i=0),n={xr:{start:d,end:h},yr:{start:v,end:g},sdx:r,sdy:i},this.plot_view.update_range(n),null},n}(r.View),o=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=s,n.prototype.type="PanTool",n.prototype.defaults=function(){return{dimensions:["width","height"]}},n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(r.Model),a=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n.Collection),{Model:o,Collection:new a,View:s}})}.call(this),n("modal",["jquery"],function(t){function e(){var e=this,r=setTimeout(function(){e.$element.off(t.support.transition.end),n.call(e)},500);this.$element.one(t.support.transition.end,function(){clearTimeout(r),n.call(e)})}function n(){this.$element.hide().trigger("hidden"),r.call(this)}function r(e){var n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var r=t.support.transition&&n;this.$backdrop=t('<div class="modal-backdrop '+n+'" />').appendTo(document.body),"static"!=this.options.backdrop&&this.$backdrop.click(t.proxy(this.hide,this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),r?this.$backdrop.one(t.support.transition.end,e):e()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(t.support.transition.end,t.proxy(i,this)):i.call(this)):e&&e()}function i(){this.$backdrop.remove(),this.$backdrop=null}function o(){var e=this;this.isShown&&this.options.keyboard?t(document).on("keyup.dismiss.modal",function(t){27==t.which&&e.hide()}):this.isShown||t(document).off("keyup.dismiss.modal")}var s=function(e,n){this.options=n,this.$element=t(e).delegate('[data-dismiss="modal"]',"click.dismiss.modal",t.proxy(this.hide,this))};s.prototype={constructor:s,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var e=this,n=t.Event("show");this.$element.trigger(n),this.isShown||n.isDefaultPrevented()||(t("body").addClass("modal-open"),this.isShown=!0,o.call(this),r.call(this,function(){var n=t.support.transition&&e.$element.hasClass("fade");e.$element.parent().length||e.$element.appendTo(document.body),e.$element.show(),n&&e.$element[0].offsetWidth,e.$element.addClass("in"),n?e.$element.one(t.support.transition.end,function(){e.$element.trigger("shown")}):e.$element.trigger("shown")}))},hide:function(r){r&&r.preventDefault(),r=t.Event("hide"),this.$element.trigger(r),this.isShown&&!r.isDefaultPrevented()&&(this.isShown=!1,t("body").removeClass("modal-open"),o.call(this),this.$element.removeClass("in"),t.support.transition&&this.$element.hasClass("fade")?e.call(this):n.call(this))}},t.fn.modal=function(e){return this.each(function(){var n=t(this),r=n.data("modal"),i=t.extend({},t.fn.modal.defaults,n.data(),"object"==typeof e&&e);r||n.data("modal",r=new s(this,i)),"string"==typeof e?r[e]():i.show&&r.show()})},t.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},t.fn.modal.Constructor=s}),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("tool/preview_save_tool",["underscore","jquery","modal","backbone","common/bulk_save","./tool","./event_generators"],function(t,n,r,i,o,s,a){var l,c,u,h,p,d,_;return l=a.ButtonEventGenerator,u=function(t){function r(){return p=r.__super__.constructor.apply(this,arguments)}return e(r,t),r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t)},r.prototype.eventGeneratorClass=l,r.prototype.evgen_options={buttonText:"Preview/Save"},r.prototype.toolType="PreviewSaveTool",r.prototype.tool_events={activated:"_activated",deactivated:"_close_modal"},r.prototype._activated=function(){var t,e,r=this;return t=this.plot_view.canvas[0].toDataURL(),this.plot_model.set("png",this.plot_view.canvas[0].toDataURL()),e='<div id=\'previewModal\' class=\'bokeh\'>\n  <div class="modal" role="dialog" aria-labelledby="previewLabel" aria-hidden="true">\n    <div class="modal-header">\n      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>\n      <h3 id="dataConfirmLabel">Image Preview (right click to save)</h3>\n    </div>\n    <div class="modal-body">\n      <img src="'+t+'" style="max-height: 300px; max-width: 400px">\n    </div>\n    <div class="modal-footer">\n      <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>\n    </div>\n  </div>\n</div>',n("body").append(e),n("#previewModal .modal").on("hidden",function(){return r.plot_view.eventSink.trigger("clear_active_tool")}),n("#previewModal > .modal").modal({show:!0})},r.prototype._close_modal=function(){return n("#previewModal").remove(),n("#previewModal > .modal").remove()},r}(s.View),c=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=u,n.prototype.type="PreviewSaveTool",n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(s.Model),h=function(t){function n(){return _=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=c,n}(i.Collection),{Model:c,Collection:new h,View:u}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("tool/reset_tool",["underscore","backbone","./tool","./event_generators"],function(t,n,r,i){var o,s,a,l,c,u,h;return o=i.ButtonEventGenerator,a=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t)},r.prototype.eventGeneratorClass=o,r.prototype.evgen_options={buttonText:"Reset View"},r.prototype.toolType="ResetTool",r.prototype.tool_events={activated:"_activated"},r.prototype._activated=function(){var e=this;return this.plot_view.update_range(),t.delay(function(){return e.plot_view.eventSink.trigger("clear_active_tool")},100)},r}(r.View),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=a,n.prototype.type="ResetTool",n}(r.Model),l=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(n.Collection),{Model:s,Collection:new l,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("tool/resize_tool",["underscore","backbone","./tool","./event_generators"],function(t,n,r,i){var o,s,a,l,c,u,h;return l=i.TwoPointEventGenerator,s=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.active=!1},n.prototype.bind_events=function(t){return n.__super__.bind_events.call(this,t)},n.prototype.eventGeneratorClass=l,n.prototype.toolType="ResizeTool",n.prototype.evgen_options={keyName:"",buttonText:"Resize",cursor:"move"},n.prototype.tool_events={activated:"_activate",deactivated:"_deactivate",UpdatingMouseMove:"_drag",SetBasepoint:"_set_base_point"},n.prototype.render=function(){var t,e,n,r;if(this.active)return e=this.plot_view.ctx,n=this.plot_view.view_state.get("canvas_width"),t=this.plot_view.view_state.get("canvas_height"),r=8,e.save(),e.strokeStyle="grey",e.globalAlpha=.7,e.lineWidth=r,e.setLineDash([]),e.beginPath(),e.rect(r,r,n-2*r,t-2*r),e.moveTo(r,r),e.lineTo(n-r,t-r),e.moveTo(r,t-r),e.lineTo(n-r,r),e.stroke(),e.restore()},n.prototype.mouse_coords=function(t,e,n){return[e,n]},n.prototype._activate=function(){var t,e,n;if(!this.active)return this.active=!0,this.popup=$('<div class="resize_popup pull-right"\nstyle="border-radius: 10px; background-color: lightgrey; padding:3px 8px; font-size: 14px;\nposition:absolute; right:20px; top: 20px; "></div>'),t=this.plot_view.$el.find(".bokeh_canvas_wrapper"),this.popup.appendTo(t),e=this.plot_view.view_state.get("outer_height"),n=this.plot_view.view_state.get("outer_width"),this.popup.text("width: "+n+" height: "+e),this.request_render(),this.plot_view.request_render(),null},n.prototype._deactivate=function(){return this.active=!1,this.popup.remove(),this.request_render(),this.plot_view.request_render(),null},n.prototype._set_base_point=function(t){var e;return e=this.mouse_coords(t,t.bokehX,t.bokehY),this.x=e[0],this.y=e[1],null},n.prototype._drag=function(t){var e,n,r,i,o,s,a,l;return this.plot_view.pause(),a=this.mouse_coords(t,t.bokehX,t.bokehY),r=a[0],o=a[1],i=r-this.x,s=o-this.y,l=[r,o],this.x=l[0],this.y=l[1],e=this.plot_view.view_state.get("outer_height"),n=this.plot_view.view_state.get("outer_width"),this.popup.text("width: "+n+" height: "+e),this.plot_view.view_state.set("outer_height",e+s,{silent:!0}),this.plot_view.view_state.set("outer_width",n+i,{silent:!0}),this.plot_view.view_state.set("canvas_height",e+s,{silent:!0}),this.plot_view.view_state.set("canvas_width",n+i,{silent:!0}),this.plot_view.view_state.trigger("change:outer_height",e+s),this.plot_view.view_state.trigger("change:outer_width",n+i),this.plot_view.view_state.trigger("change:canvas_height",e+s),this.plot_view.view_state.trigger("change:canvas_width",n+i),this.plot_view.view_state.trigger("change",this.plot_view.view_state),this.plot_view.unpause(!0),null},n}(r.View),o=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=s,n.prototype.type="ResizeTool",n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(r.Model),a=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n.Collection),{Model:o,Collection:new a,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("tool/wheel_zoom_tool",["underscore","backbone","./tool","./event_generators"],function(t,n,r,i){var o,s,a,l,c,u,h;return o=i.OnePointWheelEventGenerator,a=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){var e;return n.__super__.initialize.call(this,t),e=this.mget("dimensions"),0===e.length?console.log("WARN: wheel zoom tool given empty dimensions"):1===e.length?"width"===e[0]?this.evgen_options.buttonText="Wheel Zoom (x-axis)":"height"===e[0]?this.evgen_options.buttonText="Wheel Zoom (y-axis)":console.log("WARN: wheel tool given unrecognized dimensions: "+e):2!==e.length?console.log("WARN: wheel tool given more than two dimensions: "+e):e.indexOf("width")<0||e.indexOf("height")<0?console.log("WARN: pan tool given unrecognized dimensions: "+e):void 0},n.prototype.eventGeneratorClass=o,n.prototype.evgen_options={buttonText:"Wheel Zoom"},n.prototype.tool_events={zoom:"_zoom"},n.prototype.mouse_coords=function(t,e,n){var r,i,o;return o=[this.plot_view.view_state.sx_to_vx(e),this.plot_view.view_state.sy_to_vy(n)],r=o[0],i=o[1],[r,i]},n.prototype._zoom=function(t){var e,n,r,i,o,s,a,l,c,u,h,p,d,_,f,g,m,v,y,b,w,x,k,j;return e=t.originalEvent.wheelDelta,i=t.bokehX,o=t.bokehY,b=this.mouse_coords(t,i,o),h=b[0],f=b[1],s=this.mget("speed"),r=s*e,r>.9?r=.9:-.9>r&&(r=-.9),d=this.plot_view.view_state.get("inner_range_horizontal"),l=d.get("start"),a=d.get("end"),m=this.plot_view.view_state.get("inner_range_vertical"),u=m.get("start"),c=m.get("end"),n=this.mget("dimensions"),n.indexOf("width")>-1?(w=this.plot_view.xmapper.v_map_from_target([l-(l-h)*r,a-(a-h)*r]),_=w[0],p=w[1]):(x=this.plot_view.xmapper.v_map_from_target([l,a]),_=x[0],p=x[1]),n.indexOf("height")>-1?(k=this.plot_view.ymapper.v_map_from_target([u-(u-f)*r,c-(c-f)*r]),v=k[0],g=k[1]):(j=this.plot_view.ymapper.v_map_from_target([u,c]),v=j[0],g=j[1]),y={xr:{start:_,end:p},yr:{start:v,end:g},factor:r},this.plot_view.update_range(y),null},n}(r.View),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=a,n.prototype.type="WheelZoomTool",n.prototype.defaults=function(){return{dimensions:["width","height"],speed:1/600}},n}(r.Model),l=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(n.Collection),{Model:s,Collection:new l,View:a}})}.call(this),function(t){"function"==typeof n&&n.amd?n("jstree",["jquery"],t):"object"==typeof exports?t(e("jquery")):t(jQuery)}(function(t,e){if(!t.jstree){var n,r,i=0,o=!1,s=!1,a=!1,l=[],c=t("script:last").attr("src"),u=document,h=u.createElement("LI");h.setAttribute("role","treeitem"),n=u.createElement("I"),n.className="jstree-icon jstree-ocl",h.appendChild(n),n=u.createElement("A"),n.className="jstree-anchor",n.setAttribute("href","#"),r=u.createElement("I"),r.className="jstree-icon jstree-themeicon",n.appendChild(r),h.appendChild(n),n=r=null,t.jstree={version:"3.0.0-beta9",defaults:{plugins:[]},plugins:{},path:c&&-1!==c.indexOf("/")?c.replace(/\/[^\/]+$/,""):""},t.jstree.create=function(e,n){var r=new t.jstree.core(++i),o=n;return n=t.extend(!0,{},t.jstree.defaults,n),o&&o.plugins&&(n.plugins=o.plugins),t.each(n.plugins,function(t,e){"core"!==t&&(r=r.plugin(e,n[e]))}),r.init(e,n),r},t.jstree.core=function(t){this._id=t,this._cnt=0,this._data={core:{themes:{name:!1,dots:!1,icons:!1},selected:[],last_error:{}}}},t.jstree.reference=function(e){if(e&&!t(e).length){e.id&&(e=e.id);var n=null;return t(".jstree").each(function(){var r=t(this).data("jstree");return r&&r._model.data[e]?(n=r,!1):void 0}),n}return t(e).closest(".jstree").data("jstree")},t.fn.jstree=function(n){var r="string"==typeof n,i=Array.prototype.slice.call(arguments,1),o=null;return this.each(function(){var s=t.jstree.reference(this),a=r&&s?s[n]:null;return o=r&&a?a.apply(s,i):null,s||r||n!==e&&!t.isPlainObject(n)||t(this).data("jstree",new t.jstree.create(this,n)),s&&!r&&(o=s),null!==o&&o!==e?!1:void 0}),null!==o&&o!==e?o:this},t.expr[":"].jstree=t.expr.createPseudo(function(){return function(n){return t(n).hasClass("jstree")&&t(n).data("jstree")!==e}}),t.jstree.defaults.core={data:!1,strings:!1,check_callback:!1,error:t.noop,animation:200,multiple:!0,themes:{name:!1,url:!1,dir:!1,dots:!0,icons:!0,stripes:!1,variant:!1,responsive:!0},expand_selected_onload:!0},t.jstree.core.prototype={plugin:function(e,n){var r=t.jstree.plugins[e];return r?(this._data[e]={},r.prototype=this,new r(n,this)):this},init:function(e,n){this._model={data:{"#":{id:"#",parent:null,parents:[],children:[],children_d:[],state:{loaded:!1}}},changed:[],force_full_redraw:!1,redraw_timeout:!1,default_state:{loaded:!0,opened:!1,selected:!1,disabled:!1}},this.element=t(e).addClass("jstree jstree-"+this._id),this.settings=n,this.element.bind("destroyed",t.proxy(this.teardown,this)),this._data.core.ready=!1,this._data.core.loaded=!1,this._data.core.rtl="rtl"===this.element.css("direction"),this.element[this._data.core.rtl?"addClass":"removeClass"]("jstree-rtl"),this.element.attr("role","tree"),this.bind(),this.trigger("init"),this._data.core.original_container_html=this.element.find(" > ul > li").clone(!0),this._data.core.original_container_html.find("li").addBack().contents().filter(function(){return 3===this.nodeType&&(!this.nodeValue||/^\s+$/.test(this.nodeValue))}).remove(),this.element.html("<ul class='jstree-container-ul'><li class='jstree-initial-node jstree-loading jstree-leaf jstree-last'><i class='jstree-icon jstree-ocl'></i><a class='jstree-anchor' href='#'><i class='jstree-icon jstree-themeicon-hidden'></i>"+this.get_string("Loading ...")+"</a></li></ul>"),this._data.core.li_height=this.get_container_ul().children("li:eq(0)").height()||18,this.trigger("loading"),this.load_node("#")},destroy:function(){this.element.unbind("destroyed",this.teardown),this.teardown()},teardown:function(){this.unbind(),this.element.removeClass("jstree").removeData("jstree").find("[class^='jstree']").addBack().attr("class",function(){return this.className.replace(/jstree[^ ]*|$/gi,"")}),this.element=null},bind:function(){this.element.on("dblclick.jstree",function(){if(document.selection&&document.selection.empty)document.selection.empty();else if(window.getSelection){var t=window.getSelection();try{t.removeAllRanges(),t.collapse()}catch(e){}}}).on("click.jstree",".jstree-ocl",t.proxy(function(t){this.toggle_node(t.target)},this)).on("click.jstree",".jstree-anchor",t.proxy(function(e){e.preventDefault(),t(e.currentTarget).focus(),this.activate_node(e.currentTarget,e)},this)).on("keydown.jstree",".jstree-anchor",t.proxy(function(e){var n=null;switch(e.which){case 13:case 32:e.type="click",t(e.currentTarget).trigger(e);break;case 37:e.preventDefault(),this.is_open(e.currentTarget)?this.close_node(e.currentTarget):(n=this.get_prev_dom(e.currentTarget),n&&n.length&&n.children(".jstree-anchor").focus());break;case 38:e.preventDefault(),n=this.get_prev_dom(e.currentTarget),n&&n.length&&n.children(".jstree-anchor").focus();break;case 39:e.preventDefault(),this.is_closed(e.currentTarget)?this.open_node(e.currentTarget,function(t){this.get_node(t,!0).children(".jstree-anchor").focus()}):(n=this.get_next_dom(e.currentTarget),n&&n.length&&n.children(".jstree-anchor").focus());break;case 40:e.preventDefault(),n=this.get_next_dom(e.currentTarget),n&&n.length&&n.children(".jstree-anchor").focus();break;case 46:e.preventDefault(),n=this.get_node(e.currentTarget),n&&n.id&&"#"!==n.id&&(n=this.is_selected(n)?this.get_selected():n);break;case 113:e.preventDefault(),n=this.get_node(e.currentTarget)}},this)).on("load_node.jstree",t.proxy(function(e,n){if(n.status&&("#"!==n.node.id||this._data.core.loaded||(this._data.core.loaded=!0,this.trigger("loaded")),!this._data.core.ready&&!this.get_container_ul().find(".jstree-loading:eq(0)").length)){if(this._data.core.ready=!0,this._data.core.selected.length){if(this.settings.core.expand_selected_onload){var r,i,o=[];for(r=0,i=this._data.core.selected.length;i>r;r++)o=o.concat(this._model.data[this._data.core.selected[r]].parents);for(o=t.vakata.array_unique(o),r=0,i=o.length;i>r;r++)this.open_node(o[r],!1,0)}this.trigger("changed",{action:"ready",selected:this._data.core.selected})}setTimeout(t.proxy(function(){this.trigger("ready")},this),0)}},this)).on("init.jstree",t.proxy(function(){var t=this.settings.core.themes;this._data.core.themes.dots=t.dots,this._data.core.themes.stripes=t.stripes,this._data.core.themes.icons=t.icons,this.set_theme(t.name||"default",t.url),this.set_theme_variant(t.variant)},this)).on("loading.jstree",t.proxy(function(){this[this._data.core.themes.dots?"show_dots":"hide_dots"](),this[this._data.core.themes.icons?"show_icons":"hide_icons"](),this[this._data.core.themes.stripes?"show_stripes":"hide_stripes"]()},this)).on("focus.jstree",".jstree-anchor",t.proxy(function(e){this.element.find(".jstree-hovered").not(e.currentTarget).mouseleave(),t(e.currentTarget).mouseenter()},this)).on("mouseenter.jstree",".jstree-anchor",t.proxy(function(t){this.hover_node(t.currentTarget)},this)).on("mouseleave.jstree",".jstree-anchor",t.proxy(function(t){this.dehover_node(t.currentTarget)},this))},unbind:function(){this.element.off(".jstree"),t(document).off(".jstree-"+this._id)},trigger:function(t,e){e||(e={}),e.instance=this,this.element.triggerHandler(t.replace(".jstree","")+".jstree",e)},get_container:function(){return this.element},get_container_ul:function(){return this.element.children("ul:eq(0)")},get_string:function(e){var n=this.settings.core.strings;return t.isFunction(n)?n.call(this,e):n&&n[e]?n[e]:e},_firstChild:function(t){for(t=t?t.firstChild:null;null!==t&&1!==t.nodeType;)t=t.nextSibling;return t},_nextSibling:function(t){for(t=t?t.nextSibling:null;null!==t&&1!==t.nodeType;)t=t.nextSibling;return t},_previousSibling:function(t){for(t=t?t.previousSibling:null;null!==t&&1!==t.nodeType;)t=t.previousSibling;return t},get_node:function(e,n){e&&e.id&&(e=e.id);var r;try{if(this._model.data[e])e=this._model.data[e];else if(((r=t(e,this.element)).length||(r=t("#"+e,this.element)).length)&&this._model.data[r.closest("li").attr("id")])e=this._model.data[r.closest("li").attr("id")];else{if(!(r=t(e,this.element)).length||!r.hasClass("jstree"))return!1;e=this._model.data["#"]}return n&&(e="#"===e.id?this.element:t(document.getElementById(e.id))),e}catch(i){return!1}},get_path:function(t,e,n){if(t=t.parents?t:this.get_node(t),!t||"#"===t.id||!t.parents)return!1;var r,i,o=[];for(o.push(n?t.id:t.text),r=0,i=t.parents.length;i>r;r++)o.push(n?t.parents[r]:this.get_text(t.parents[r]));return o=o.reverse().slice(1),e?o.join(e):o},get_next_dom:function(e,n){var r;return e=this.get_node(e,!0),e[0]===this.element[0]?(r=this._firstChild(this.get_container_ul()[0]),r?t(r):!1):e&&e.length?n?(r=this._nextSibling(e[0]),r?t(r):!1):e.hasClass("jstree-open")?(r=this._firstChild(e.children("ul")[0]),r?t(r):!1):null!==(r=this._nextSibling(e[0]))?t(r):e.parentsUntil(".jstree","li").next("li").eq(0):!1},get_prev_dom:function(e,n){var r;if(e=this.get_node(e,!0),e[0]===this.element[0])return r=this.get_container_ul()[0].lastChild,r?t(r):!1;if(!e||!e.length)return!1;if(n)return r=this._previousSibling(e[0]),r?t(r):!1;if(null!==(r=this._previousSibling(e[0]))){for(e=t(r);e.hasClass("jstree-open");)e=e.children("ul:eq(0)").children("li:last");return e}return r=e[0].parentNode.parentNode,r&&"LI"===r.tagName?t(r):!1},get_parent:function(t){return t=this.get_node(t),t&&"#"!==t.id?t.parent:!1},get_children_dom:function(t){return t=this.get_node(t,!0),t[0]===this.element[0]?this.get_container_ul().children("li"):t&&t.length?t.children("ul").children("li"):!1},is_parent:function(t){return t=this.get_node(t),t&&(t.state.loaded===!1||t.children.length>0)},is_loaded:function(t){return t=this.get_node(t),t&&t.state.loaded},is_loading:function(t){return t=this.get_node(t,!0),t&&t.hasClass("jstree-loading")},is_open:function(t){return t=this.get_node(t),t&&t.state.opened},is_closed:function(t){return t=this.get_node(t),t&&this.is_parent(t)&&!t.state.opened},is_leaf:function(t){return!this.is_parent(t)},load_node:function(e,n){var r,i;if(t.isArray(e)){for(e=e.slice(),r=0,i=e.length;i>r;r++)this.load_node(e[r],n);return!0}return(e=this.get_node(e))?(this.get_node(e,!0).addClass("jstree-loading"),this._load_node(e,t.proxy(function(t){e.state.loaded=t,this.get_node(e,!0).removeClass("jstree-loading"),this.trigger("load_node",{node:e,status:t}),n&&n.call(this,e,t)},this)),!0):(n.call(this,e,!1),!1)},_load_node:function(e,n){var r,i=this.settings.core.data;return i?t.isFunction(i)?i.call(this,e,t.proxy(function(r){return r===!1?n.call(this,!1):n.call(this,this["string"==typeof r?"_append_html_data":"_append_json_data"](e,"string"==typeof r?t(r):r))},this)):"object"==typeof i?i.url?(i=t.extend(!0,{},i),t.isFunction(i.url)&&(i.url=i.url.call(this,e)),t.isFunction(i.data)&&(i.data=i.data.call(this,e)),t.ajax(i).done(t.proxy(function(r,i,o){var s=o.getResponseHeader("Content-Type");return-1!==s.indexOf("json")?n.call(this,this._append_json_data(e,r)):-1!==s.indexOf("html")?n.call(this,this._append_html_data(e,t(r))):void 0},this)).fail(t.proxy(function(){n.call(this,!1),this._data.core.last_error={error:"ajax",plugin:"core",id:"core_04",reason:"Could not load node",data:JSON.stringify(i)},this.settings.core.error.call(this,this._data.core.last_error)},this))):(r=t.isArray(i)||t.isPlainObject(i)?JSON.parse(JSON.stringify(i)):i,n.call(this,this._append_json_data(e,r))):"string"==typeof i?n.call(this,this._append_html_data(e,i)):n.call(this,!1):n.call(this,"#"===e.id?this._append_html_data(e,this._data.core.original_container_html.clone(!0)):!1)},_node_changed:function(t){t=this.get_node(t),t&&this._model.changed.push(t.id)},_append_html_data:function(e,n){e=this.get_node(e),e.children=[],e.children_d=[];var r,i,o,s=n.is("ul")?n.children():n,a=e.id,l=[],c=[],u=this._model.data,h=u[a],p=this._data.core.selected.length;for(s.each(t.proxy(function(e,n){r=this._parse_model_from_html(t(n),a,h.parents.concat()),r&&(l.push(r),c.push(r),u[r].children_d.length&&(c=c.concat(u[r].children_d)))},this)),h.children=l,h.children_d=c,i=0,o=h.parents.length;o>i;i++)u[h.parents[i]].children_d=u[h.parents[i]].children_d.concat(c);return this.trigger("model",{nodes:c,parent:a}),"#"!==a?(this._node_changed(a),this.redraw()):(this.get_container_ul().children(".jstree-initial-node").remove(),this.redraw(!0)),this._data.core.selected.length!==p&&this.trigger("changed",{action:"model",selected:this._data.core.selected}),!0},_append_json_data:function(n,r){n=this.get_node(n),n.children=[],n.children_d=[];var i,o,s,a=r,l=n.id,c=[],u=[],h=this._model.data,p=h[l],d=this._data.core.selected.length;if(a.d&&(a=a.d,"string"==typeof a&&(a=JSON.parse(a))),t.isArray(a)||(a=[a]),a.length&&a[0].id!==e&&a[0].parent!==e){for(o=0,s=a.length;s>o;o++)a[o].children||(a[o].children=[]),h[a[o].id]=a[o];for(o=0,s=a.length;s>o;o++)h[a[o].parent].children.push(a[o].id),p.children_d.push(a[o].id);for(o=0,s=p.children.length;s>o;o++)i=this._parse_model_from_flat_json(h[p.children[o]],l,p.parents.concat()),u.push(i),h[i].children_d.length&&(u=u.concat(h[i].children_d))}else{for(o=0,s=a.length;s>o;o++)i=this._parse_model_from_json(a[o],l,p.parents.concat()),i&&(c.push(i),u.push(i),h[i].children_d.length&&(u=u.concat(h[i].children_d)));for(p.children=c,p.children_d=u,o=0,s=p.parents.length;s>o;o++)h[p.parents[o]].children_d=h[p.parents[o]].children_d.concat(u)}return this.trigger("model",{nodes:u,parent:l}),"#"!==l?(this._node_changed(l),this.redraw()):this.redraw(!0),this._data.core.selected.length!==d&&this.trigger("changed",{action:"model",selected:this._data.core.selected}),!0},_parse_model_from_html:function(e,n,r){r=r?[].concat(r):[],n&&r.unshift(n);var i,o,s,a,l,c=this._model.data,u={id:!1,text:!1,icon:!0,parent:n,parents:r,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(s in this._model.default_state)this._model.default_state.hasOwnProperty(s)&&(u.state[s]=this._model.default_state[s]);if(a=t.vakata.attributes(e,!0),t.each(a,function(e,n){return n=t.trim(n),n.length?(u.li_attr[e]=n,"id"===e&&(u.id=n),void 0):!0}),a=e.children("a").eq(0),a.length&&(a=t.vakata.attributes(a,!0),t.each(a,function(e,n){n=t.trim(n),n.length&&(u.a_attr[e]=n)})),a=e.children("a:eq(0)").length?e.children("a:eq(0)").clone():e.clone(),a.children("ins, i, ul").remove(),a=a.html(),a=t("<div />").html(a),u.text=a.html(),a=e.data(),u.data=a?t.extend(!0,{},a):null,u.state.opened=e.hasClass("jstree-open"),u.state.selected=e.children("a").hasClass("jstree-clicked"),u.state.disabled=e.children("a").hasClass("jstree-disabled"),u.data&&u.data.jstree)for(s in u.data.jstree)u.data.jstree.hasOwnProperty(s)&&(u.state[s]=u.data.jstree[s]);a=e.children("a").children(".jstree-themeicon"),a.length&&(u.icon=a.hasClass("jstree-themeicon-hidden")?!1:a.attr("rel")),u.state.icon&&(u.icon=u.state.icon),a=e.children("ul").children("li");do l="j"+this._id+"_"+ ++this._cnt;while(c[l]);return u.id=u.li_attr.id||l,a.length?(a.each(t.proxy(function(e,n){i=this._parse_model_from_html(t(n),u.id,r),o=this._model.data[i],u.children.push(i),o.children_d.length&&(u.children_d=u.children_d.concat(o.children_d))},this)),u.children_d=u.children_d.concat(u.children)):e.hasClass("jstree-closed")&&(u.state.loaded=!1),u.li_attr["class"]&&(u.li_attr["class"]=u.li_attr["class"].replace("jstree-closed","").replace("jstree-open","")),u.a_attr["class"]&&(u.a_attr["class"]=u.a_attr["class"].replace("jstree-clicked","").replace("jstree-disabled","")),c[u.id]=u,u.state.selected&&this._data.core.selected.push(u.id),u.id},_parse_model_from_flat_json:function(t,n,r){r=r?r.concat():[],n&&r.unshift(n);var i,o,s,a,l=t.id,c=this._model.data,u=this._model.default_state,h={id:l,text:t.text||"",icon:t.icon!==e?t.icon:!0,parent:n,parents:r,children:t.children||[],children_d:t.children_d||[],data:t.data,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(i in u)u.hasOwnProperty(i)&&(h.state[i]=u[i]);if(t&&t.data&&t.data.jstree&&t.data.jstree.icon&&(h.icon=t.data.jstree.icon),t&&t.data&&(h.data=t.data,t.data.jstree))for(i in t.data.jstree)t.data.jstree.hasOwnProperty(i)&&(h.state[i]=t.data.jstree[i]);if(t&&"object"==typeof t.state)for(i in t.state)t.state.hasOwnProperty(i)&&(h.state[i]=t.state[i]);if(t&&"object"==typeof t.li_attr)for(i in t.li_attr)t.li_attr.hasOwnProperty(i)&&(h.li_attr[i]=t.li_attr[i]);if(h.li_attr.id||(h.li_attr.id=l),t&&"object"==typeof t.a_attr)for(i in t.a_attr)t.a_attr.hasOwnProperty(i)&&(h.a_attr[i]=t.a_attr[i]);for(t&&t.children&&t.children===!0&&(h.state.loaded=!1,h.children=[],h.children_d=[]),c[h.id]=h,i=0,o=h.children.length;o>i;i++)s=this._parse_model_from_flat_json(c[h.children[i]],h.id,r),a=c[s],h.children_d.push(s),a.children_d.length&&(h.children_d=h.children_d.concat(a.children_d));
            return delete t.data,delete t.children,c[h.id].original=t,h.state.selected&&this._data.core.selected.push(h.id),h.id},_parse_model_from_json:function(t,n,r){r=r?r.concat():[],n&&r.unshift(n);var i,o,s,a,l,c=!1,u=this._model.data,h=this._model.default_state;do c="j"+this._id+"_"+ ++this._cnt;while(u[c]);l={id:!1,text:"string"==typeof t?t:"",icon:"object"==typeof t&&t.icon!==e?t.icon:!0,parent:n,parents:r,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(i in h)h.hasOwnProperty(i)&&(l.state[i]=h[i]);if(t&&t.id&&(l.id=t.id),t&&t.text&&(l.text=t.text),t&&t.data&&t.data.jstree&&t.data.jstree.icon&&(l.icon=t.data.jstree.icon),t&&t.data&&(l.data=t.data,t.data.jstree))for(i in t.data.jstree)t.data.jstree.hasOwnProperty(i)&&(l.state[i]=t.data.jstree[i]);if(t&&"object"==typeof t.state)for(i in t.state)t.state.hasOwnProperty(i)&&(l.state[i]=t.state[i]);if(t&&"object"==typeof t.li_attr)for(i in t.li_attr)t.li_attr.hasOwnProperty(i)&&(l.li_attr[i]=t.li_attr[i]);if(l.li_attr.id&&!l.id&&(l.id=l.li_attr.id),l.id||(l.id=c),l.li_attr.id||(l.li_attr.id=l.id),t&&"object"==typeof t.a_attr)for(i in t.a_attr)t.a_attr.hasOwnProperty(i)&&(l.a_attr[i]=t.a_attr[i]);if(t&&t.children&&t.children.length){for(i=0,o=t.children.length;o>i;i++)s=this._parse_model_from_json(t.children[i],l.id,r),a=u[s],l.children.push(s),a.children_d.length&&(l.children_d=l.children_d.concat(a.children_d));l.children_d=l.children_d.concat(l.children)}return t&&t.children&&t.children===!0&&(l.state.loaded=!1,l.children=[],l.children_d=[]),delete t.data,delete t.children,l.original=t,u[l.id]=l,l.state.selected&&this._data.core.selected.push(l.id),l.id},_redraw:function(){var t,e,n,r=this._model.force_full_redraw?this._model.data["#"].children.concat([]):this._model.changed.concat([]),i=document.createElement("UL");for(e=0,n=r.length;n>e;e++)t=this.redraw_node(r[e],!0,this._model.force_full_redraw),t&&this._model.force_full_redraw&&i.appendChild(t);this._model.force_full_redraw&&(i.className=this.get_container_ul()[0].className,this.element.empty().append(i)),this._model.force_full_redraw=!1,this._model.changed=[],this.trigger("redraw",{nodes:r})},redraw:function(t){t&&(this._model.force_full_redraw=!0),this._redraw()},redraw_node:function(e,n,r){var i=this.get_node(e),o=!1,s=!1,a=!1,l=!1,c=!1,u=!1,p="",d=document,_=this._model.data,f=!1,g=!1;if(!i)return!1;if("#"===i.id)return this.redraw(!0);if(n=n||0===i.children.length,e=d.getElementById(i.id))e=t(e),r||(o=e.parent().parent()[0],o===this.element[0]&&(o=null),s=e.index()),n||!i.children.length||e.children("ul").length||(n=!0),n||(a=e.children("UL")[0]),g=e.attr("aria-selected"),f=e.children(".jstree-anchor")[0]===document.activeElement,e.remove();else if(n=!0,!r){if(o="#"!==i.parent?t("#"+i.parent,this.element)[0]:null,!(null===o||o&&_[i.parent].state.opened))return!1;s=t.inArray(i.id,null===o?_["#"].children:_[i.parent].children)}e=h.cloneNode(!0),p="jstree-node ";for(l in i.li_attr)if(i.li_attr.hasOwnProperty(l)){if("id"===l)continue;"class"!==l?e.setAttribute(l,i.li_attr[l]):p+=i.li_attr[l]}g&&"false"!==g&&e.setAttribute("aria-selected",!0),!i.children.length&&i.state.loaded?p+=" jstree-leaf":(p+=i.state.opened?" jstree-open":" jstree-closed",e.setAttribute("aria-expanded",i.state.opened)),null!==i.parent&&_[i.parent].children[_[i.parent].children.length-1]===i.id&&(p+=" jstree-last"),e.id=i.id,e.className=p,p=(i.state.selected?" jstree-clicked":"")+(i.state.disabled?" jstree-disabled":"");for(c in i.a_attr)if(i.a_attr.hasOwnProperty(c)){if("href"===c&&"#"===i.a_attr[c])continue;"class"!==c?e.childNodes[1].setAttribute(c,i.a_attr[c]):p+=" "+i.a_attr[c]}if(p.length&&(e.childNodes[1].className="jstree-anchor "+p),(i.icon&&i.icon!==!0||i.icon===!1)&&(i.icon===!1?e.childNodes[1].childNodes[0].className+=" jstree-themeicon-hidden":-1===i.icon.indexOf("/")&&-1===i.icon.indexOf(".")?e.childNodes[1].childNodes[0].className+=" "+i.icon+" jstree-themeicon-custom":(e.childNodes[1].childNodes[0].style.backgroundImage="url("+i.icon+")",e.childNodes[1].childNodes[0].style.backgroundPosition="center center",e.childNodes[1].childNodes[0].style.backgroundSize="auto",e.childNodes[1].childNodes[0].className+=" jstree-themeicon-custom")),e.childNodes[1].innerHTML+=i.text,n&&i.children.length&&i.state.opened){for(u=d.createElement("UL"),u.setAttribute("role","group"),u.className="jstree-children",l=0,c=i.children.length;c>l;l++)u.appendChild(this.redraw_node(i.children[l],n,!0));e.appendChild(u)}return a&&e.appendChild(a),r||(o||(o=this.element[0]),o.getElementsByTagName("UL").length?o=o.getElementsByTagName("UL")[0]:(l=d.createElement("UL"),l.setAttribute("role","group"),l.className="jstree-children",o.appendChild(l),o=l),s<o.childNodes.length?o.insertBefore(e,o.childNodes[s]):o.appendChild(e),f&&e.childNodes[1].focus()),e},open_node:function(n,r,i){var o,s,a,l;if(t.isArray(n)){for(n=n.slice(),o=0,s=n.length;s>o;o++)this.open_node(n[o],r,i);return!0}if(n=this.get_node(n),!n||"#"===n.id)return!1;if(i=i===e?this.settings.core.animation:i,!this.is_closed(n))return r&&r.call(this,n,!1),!1;if(this.is_loaded(n))a=this.get_node(n,!0),l=this,a.length&&(n.children.length&&!this._firstChild(a.children("ul")[0])&&(n.state.opened=!0,this.redraw_node(n,!0),a=this.get_node(n,!0)),i?a.children("ul").css("display","none").end().removeClass("jstree-closed").addClass("jstree-open").attr("aria-expanded",!0).children("ul").stop(!0,!0).slideDown(i,function(){this.style.display="",l.trigger("after_open",{node:n})}):(a[0].className=a[0].className.replace("jstree-closed","jstree-open"),a[0].setAttribute("aria-expanded",!0))),n.state.opened=!0,r&&r.call(this,n,!0),this.trigger("open_node",{node:n}),i&&a.length||this.trigger("after_open",{node:n});else{if(this.is_loading(n))return setTimeout(t.proxy(function(){this.open_node(n,r,i)},this),500);this.load_node(n,function(t,e){return e?this.open_node(t,r,i):r?r.call(this,t,!1):!1})}},_open_to:function(e){if(e=this.get_node(e),!e||"#"===e.id)return!1;var n,r,i=e.parents;for(n=0,r=i.length;r>n;n+=1)"#"!==n&&this.open_node(i[n],!1,0);return t(document.getElementById(e.id))},close_node:function(n,r){var i,o,s,a;if(t.isArray(n)){for(n=n.slice(),i=0,o=n.length;o>i;i++)this.close_node(n[i],r);return!0}return n=this.get_node(n),n&&"#"!==n.id?(r=r===e?this.settings.core.animation:r,s=this,a=this.get_node(n,!0),a.length&&(r?a.children("ul").attr("style","display:block !important").end().removeClass("jstree-open").addClass("jstree-closed").attr("aria-expanded",!1).children("ul").stop(!0,!0).slideUp(r,function(){this.style.display="",a.children("ul").remove(),s.trigger("after_close",{node:n})}):(a[0].className=a[0].className.replace("jstree-open","jstree-closed"),a.attr("aria-expanded",!1).children("ul").remove())),n.state.opened=!1,this.trigger("close_node",{node:n}),r&&a.length||this.trigger("after_close",{node:n}),void 0):!1},toggle_node:function(e){var n,r;if(t.isArray(e)){for(e=e.slice(),n=0,r=e.length;r>n;n++)this.toggle_node(e[n]);return!0}return this.is_closed(e)?this.open_node(e):this.is_open(e)?this.close_node(e):void 0},open_all:function(t,e,n){if(t||(t="#"),t=this.get_node(t),!t)return!1;var r,i,o,s="#"===t.id?this.get_container_ul():this.get_node(t,!0);if(!s.length){for(r=0,i=t.children_d.length;i>r;r++)this.is_closed(this._model.data[t.children_d[r]])&&(this._model.data[t.children_d[r]].state.opened=!0);return this.trigger("open_all",{node:t})}n=n||s,o=this,s=this.is_closed(t)?s.find("li.jstree-closed").addBack():s.find("li.jstree-closed"),s.each(function(){o.open_node(this,function(t,r){r&&this.is_parent(t)&&this.open_all(t,e,n)},e||0)}),0===n.find("li.jstree-closed").length&&this.trigger("open_all",{node:this.get_node(n)})},close_all:function(t,e){if(t||(t="#"),t=this.get_node(t),!t)return!1;var n,r,i="#"===t.id?this.get_container_ul():this.get_node(t,!0),o=this;if(!i.length){for(n=0,r=t.children_d.length;r>n;n++)this._model.data[t.children_d[n]].state.opened=!1;return this.trigger("close_all",{node:t})}i=this.is_open(t)?i.find("li.jstree-open").addBack():i.find("li.jstree-open"),i.vakata_reverse().each(function(){o.close_node(this,e||0)}),this.trigger("close_all",{node:t})},is_disabled:function(t){return t=this.get_node(t),t&&t.state&&t.state.disabled},enable_node:function(e){var n,r;if(t.isArray(e)){for(e=e.slice(),n=0,r=e.length;r>n;n++)this.enable_node(e[n]);return!0}return e=this.get_node(e),e&&"#"!==e.id?(e.state.disabled=!1,this.get_node(e,!0).children(".jstree-anchor").removeClass("jstree-disabled"),this.trigger("enable_node",{node:e}),void 0):!1},disable_node:function(e){var n,r;if(t.isArray(e)){for(e=e.slice(),n=0,r=e.length;r>n;n++)this.disable_node(e[n]);return!0}return e=this.get_node(e),e&&"#"!==e.id?(e.state.disabled=!0,this.get_node(e,!0).children(".jstree-anchor").addClass("jstree-disabled"),this.trigger("disable_node",{node:e}),void 0):!1},activate_node:function(t,e){if(this.is_disabled(t))return!1;if(this.settings.core.multiple&&(e.metaKey||e.ctrlKey||e.shiftKey)&&(!e.shiftKey||this._data.core.last_clicked&&this.get_parent(t)&&this.get_parent(t)===this._data.core.last_clicked.parent))if(e.shiftKey){var n,r,i=this.get_node(t).id,o=this._data.core.last_clicked.id,s=this.get_node(this._data.core.last_clicked.parent).children,a=!1;for(n=0,r=s.length;r>n;n+=1)s[n]===i&&(a=!a),s[n]===o&&(a=!a),a||s[n]===i||s[n]===o?this.select_node(s[n],!1,!1,e):this.deselect_node(s[n],!1,!1,e)}else this.is_selected(t)?this.deselect_node(t,!1,!1,e):this.select_node(t,!1,!1,e);else!this.settings.core.multiple&&(e.metaKey||e.ctrlKey||e.shiftKey)&&this.is_selected(t)?this.deselect_node(t,!1,!1,e):(this.deselect_all(!0),this.select_node(t,!1,!1,e),this._data.core.last_clicked=this.get_node(t));this.trigger("activate_node",{node:this.get_node(t)})},hover_node:function(t){if(t=this.get_node(t,!0),!t||!t.length||t.children(".jstree-hovered").length)return!1;var e=this.element.find(".jstree-hovered"),n=this.element;e&&e.length&&this.dehover_node(e),t.children(".jstree-anchor").addClass("jstree-hovered"),this.trigger("hover_node",{node:this.get_node(t)}),setTimeout(function(){n.attr("aria-activedescendant",t[0].id),t.attr("aria-selected",!0)},0)},dehover_node:function(t){return t=this.get_node(t,!0),t&&t.length&&t.children(".jstree-hovered").length?(t.attr("aria-selected",!1).children(".jstree-anchor").removeClass("jstree-hovered"),this.trigger("dehover_node",{node:this.get_node(t)}),void 0):!1},select_node:function(e,n,r,i){var o,s,a;if(t.isArray(e)){for(e=e.slice(),s=0,a=e.length;a>s;s++)this.select_node(e[s],n,r,i);return!0}return e=this.get_node(e),e&&"#"!==e.id?(o=this.get_node(e,!0),e.state.selected||(e.state.selected=!0,this._data.core.selected.push(e.id),r||(o=this._open_to(e)),o&&o.length&&o.children(".jstree-anchor").addClass("jstree-clicked"),this.trigger("select_node",{node:e,selected:this._data.core.selected,event:i}),n||this.trigger("changed",{action:"select_node",node:e,selected:this._data.core.selected,event:i})),void 0):!1},deselect_node:function(e,n,r){var i,o,s;if(t.isArray(e)){for(e=e.slice(),i=0,o=e.length;o>i;i++)this.deselect_node(e[i],n,r);return!0}return e=this.get_node(e),e&&"#"!==e.id?(s=this.get_node(e,!0),e.state.selected&&(e.state.selected=!1,this._data.core.selected=t.vakata.array_remove_item(this._data.core.selected,e.id),s.length&&s.children(".jstree-anchor").removeClass("jstree-clicked"),this.trigger("deselect_node",{node:e,selected:this._data.core.selected,event:r}),n||this.trigger("changed",{action:"deselect_node",node:e,selected:this._data.core.selected,event:r})),void 0):!1},select_all:function(t){var e,n,r=this._data.core.selected.concat([]);for(this._data.core.selected=this._model.data["#"].children_d.concat(),e=0,n=this._data.core.selected.length;n>e;e++)this._model.data[this._data.core.selected[e]]&&(this._model.data[this._data.core.selected[e]].state.selected=!0);this.redraw(!0),this.trigger("select_all",{selected:this._data.core.selected}),t||this.trigger("changed",{action:"select_all",selected:this._data.core.selected,old_selection:r})},deselect_all:function(t){var e,n,r=this._data.core.selected.concat([]);for(e=0,n=this._data.core.selected.length;n>e;e++)this._model.data[this._data.core.selected[e]]&&(this._model.data[this._data.core.selected[e]].state.selected=!1);this._data.core.selected=[],this.element.find(".jstree-clicked").removeClass("jstree-clicked"),this.trigger("deselect_all",{selected:this._data.core.selected,node:r}),t||this.trigger("changed",{action:"deselect_all",selected:this._data.core.selected,old_selection:r})},is_selected:function(t){return t=this.get_node(t),t&&"#"!==t.id?t.state.selected:!1},get_selected:function(e){return e?t.map(this._data.core.selected,t.proxy(function(t){return this.get_node(t)},this)):this._data.core.selected},get_state:function(){var t,e={core:{open:[],scroll:{left:this.element.scrollLeft(),top:this.element.scrollTop()},selected:[]}};for(t in this._model.data)this._model.data.hasOwnProperty(t)&&"#"!==t&&(this._model.data[t].state.opened&&e.core.open.push(t),this._model.data[t].state.selected&&e.core.selected.push(t));return e},set_state:function(n,r){if(n){if(n.core){var i,o,s,a;if(n.core.open)return t.isArray(n.core.open)?(i=!0,o=!1,s=this,t.each(n.core.open.concat([]),function(e,a){o=s.get_node(a),o&&(s.is_loaded(a)?(s.is_closed(a)&&s.open_node(a,!1,0),n&&n.core&&n.core.open&&t.vakata.array_remove_item(n.core.open,a)):(s.is_loading(a)||s.open_node(a,t.proxy(function(){this.set_state(n,r)},s),0),i=!1))}),i&&(delete n.core.open,this.set_state(n,r)),!1):(delete n.core.open,this.set_state(n,r),!1);if(n.core.scroll)return n.core.scroll&&n.core.scroll.left!==e&&this.element.scrollLeft(n.core.scroll.left),n.core.scroll&&n.core.scroll.top!==e&&this.element.scrollTop(n.core.scroll.top),delete n.core.scroll,this.set_state(n,r),!1;if(n.core.selected)return a=this,this.deselect_all(),t.each(n.core.selected,function(t,e){a.select_node(e)}),delete n.core.selected,this.set_state(n,r),!1;if(t.isEmptyObject(n.core))return delete n.core,this.set_state(n,r),!1}return t.isEmptyObject(n)?(n=null,r&&r.call(this),this.trigger("set_state"),!1):!0}return!1},refresh:function(e){this._data.core.state=this.get_state(),this._cnt=0,this._model.data={"#":{id:"#",parent:null,parents:[],children:[],children_d:[],state:{loaded:!1}}};var n=this.get_container_ul()[0].className;e||this.element.html("<ul class='jstree-container-ul'><li class='jstree-initial-node jstree-loading jstree-leaf jstree-last'><i class='jstree-icon jstree-ocl'></i><a class='jstree-anchor' href='#'><i class='jstree-icon jstree-themeicon-hidden'></i>"+this.get_string("Loading ...")+"</a></li></ul>"),this.load_node("#",function(e,r){r&&(this.get_container_ul()[0].className=n,this.set_state(t.extend(!0,{},this._data.core.state),function(){this.trigger("refresh")})),this._data.core.state=null})},set_id:function(e,n){if(e=this.get_node(e),!e||"#"===e.id)return!1;var r,i,o=this._model.data;for(o[e.parent].children[t.inArray(e.id,o[e.parent].children)]=n,r=0,i=e.parents.length;i>r;r++)o[e.parents[r]].children_d[t.inArray(e.id,o[e.parents[r]].children_d)]=n;for(r=0,i=e.children.length;i>r;r++)o[e.children[r]].parent=n;for(r=0,i=e.children_d.length;i>r;r++)o[e.children_d[r]].parents[t.inArray(e.id,o[e.children_d[r]].parents)]=n;return r=t.inArray(e.id,this._data.core.selected),-1!==r&&(this._data.core.selected[r]=n),r=this.get_node(e.id,!0),r&&r.attr("id",n),delete o[e.id],e.id=n,o[n]=e,!0},get_text:function(t){return t=this.get_node(t),t&&"#"!==t.id?t.text:!1},set_text:function(e,n){var r,i,o,s;if(t.isArray(e)){for(e=e.slice(),r=0,i=e.length;i>r;r++)this.set_text(e[r],n);return!0}return e=this.get_node(e),e&&"#"!==e.id?(e.text=n,o=this.get_node(e,!0),o.length&&(o=o.children(".jstree-anchor:eq(0)"),s=o.children("I").clone(),o.html(n).prepend(s),this.trigger("set_text",{obj:e,text:n})),!0):!1},get_json:function(t,e,n){if(t=this.get_node(t||"#"),!t)return!1;e&&e.flat&&!n&&(n=[]);var r,i,o={id:t.id,text:t.text,icon:this.get_icon(t),li_attr:t.li_attr,a_attr:t.a_attr,state:{},data:e&&e.no_data?!1:t.data};if(e&&e.flat?o.parent=t.parent:o.children=[],!e||!e.no_state)for(r in t.state)t.state.hasOwnProperty(r)&&(o.state[r]=t.state[r]);if(e&&e.no_id&&(delete o.id,o.li_attr&&o.li_attr.id&&delete o.li_attr.id),e&&e.flat&&"#"!==t.id&&n.push(o),!e||!e.no_children)for(r=0,i=t.children.length;i>r;r++)e&&e.flat?this.get_json(t.children[r],e,n):o.children.push(this.get_json(t.children[r],e));return e&&e.flat?n:"#"===t.id?o.children:o},create_node:function(n,r,i,o,s){if(n=this.get_node(n),!n)return!1;if(i=i===e?"last":i,!i.toString().match(/^(before|after)$/)&&!s&&!this.is_loaded(n))return this.load_node(n,function(){this.create_node(n,r,i,o,!0)});r||(r={text:this.get_string("New node")}),r.text===e&&(r.text=this.get_string("New node"));var a,l,c,u;switch("#"===n.id&&("before"===i&&(i="first"),"after"===i&&(i="last")),i){case"before":a=this.get_node(n.parent),i=t.inArray(n.id,a.children),n=a;break;case"after":a=this.get_node(n.parent),i=t.inArray(n.id,a.children)+1,n=a;break;case"inside":case"first":i=0;break;case"last":i=n.children.length;break;default:i||(i=0)}if(i>n.children.length&&(i=n.children.length),r.id||(r.id=!0),!this.check("create_node",r,n,i))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(r.id===!0&&delete r.id,r=this._parse_model_from_json(r,n.id,n.parents.concat()),!r)return!1;for(a=this.get_node(r),l=[],l.push(r),l=l.concat(a.children_d),this.trigger("model",{nodes:l,parent:n.id}),n.children_d=n.children_d.concat(l),c=0,u=n.parents.length;u>c;c++)this._model.data[n.parents[c]].children_d=this._model.data[n.parents[c]].children_d.concat(l);for(r=a,a=[],c=0,u=n.children.length;u>c;c++)a[c>=i?c+1:c]=n.children[c];return a[i]=r.id,n.children=a,this.redraw_node(n,!0),o&&o.call(this,this.get_node(r)),this.trigger("create_node",{node:this.get_node(r),parent:n.id,position:i}),r.id},rename_node:function(e,n){var r,i,o;if(t.isArray(e)){for(e=e.slice(),r=0,i=e.length;i>r;r++)this.rename_node(e[r],n);return!0}return e=this.get_node(e),e&&"#"!==e.id?(o=e.text,this.check("rename_node",e,this.get_parent(e),n)?(this.set_text(e,n),this.trigger("rename_node",{node:e,text:n,old:o}),!0):(this.settings.core.error.call(this,this._data.core.last_error),!1)):!1},delete_node:function(e){var n,r,i,o,s,a,l,c,u,h;if(t.isArray(e)){for(e=e.slice(),n=0,r=e.length;r>n;n++)this.delete_node(e[n]);return!0}if(e=this.get_node(e),!e||"#"===e.id)return!1;if(i=this.get_node(e.parent),o=t.inArray(e.id,i.children),h=!1,!this.check("delete_node",e,i,o))return this.settings.core.error.call(this,this._data.core.last_error),!1;for(-1!==o&&(i.children=t.vakata.array_remove(i.children,o)),s=e.children_d.concat([]),s.push(e.id),c=0,u=s.length;u>c;c++){for(a=0,l=e.parents.length;l>a;a++)o=t.inArray(s[c],this._model.data[e.parents[a]].children_d),-1!==o&&(this._model.data[e.parents[a]].children_d=t.vakata.array_remove(this._model.data[e.parents[a]].children_d,o));this._model.data[s[c]].state.selected&&(h=!0,o=t.inArray(s[c],this._data.core.selected),-1!==o&&(this._data.core.selected=t.vakata.array_remove(this._data.core.selected,o)))}for(this.trigger("delete_node",{node:e,parent:i.id}),h&&this.trigger("changed",{action:"delete_node",node:e,selected:this._data.core.selected,parent:i.id}),c=0,u=s.length;u>c;c++)delete this._model.data[s[c]];return this.redraw_node(i,!0),!0},check:function(e,n,r,i){n=n&&n.id?n:this.get_node(n),r=r&&r.id?r:this.get_node(r);var o=e.match(/^move_node|copy_node|create_node$/i)?r:n,s=this.settings.core.check_callback;return"move_node"!==e||n.id!==r.id&&t.inArray(n.id,r.children)!==i&&-1===t.inArray(r.id,n.children_d)?(o=this.get_node(o,!0),o.length&&(o=o.data("jstree")),o&&o.functions&&(o.functions[e]===!1||o.functions[e]===!0)?(o.functions[e]===!1&&(this._data.core.last_error={error:"check",plugin:"core",id:"core_02",reason:"Node data prevents function: "+e,data:JSON.stringify({chk:e,pos:i,obj:n&&n.id?n.id:!1,par:r&&r.id?r.id:!1})}),o.functions[e]):s===!1||t.isFunction(s)&&s.call(this,e,n,r,i)===!1||s&&s[e]===!1?(this._data.core.last_error={error:"check",plugin:"core",id:"core_03",reason:"User config for core.check_callback prevents function: "+e,data:JSON.stringify({chk:e,pos:i,obj:n&&n.id?n.id:!1,par:r&&r.id?r.id:!1})},!1):!0):(this._data.core.last_error={error:"check",plugin:"core",id:"core_01",reason:"Moving parent inside child",data:JSON.stringify({chk:e,pos:i,obj:n&&n.id?n.id:!1,par:r&&r.id?r.id:!1})},!1)},last_error:function(){return this._data.core.last_error},move_node:function(n,r,i,o,s){var a,l,c,u,h,p,d,_,f,g,m,v,y;if(t.isArray(n)){for(n=n.reverse().slice(),a=0,l=n.length;l>a;a++)this.move_node(n[a],r,i,o,s);return!0}if(n=n&&n.id?n:this.get_node(n),r=this.get_node(r),i=i===e?0:i,!r||!n||"#"===n.id)return!1;if(!i.toString().match(/^(before|after)$/)&&!s&&!this.is_loaded(r))return this.load_node(r,function(){this.move_node(n,r,i,o,!0)});if(c=(n.parent||"#").toString(),u=i.toString().match(/^(before|after)$/)&&"#"!==r.id?this.get_node(r.parent):r,h=this._model.data[n.id]?this:t.jstree.reference(n.id),p=!h||!h._id||this._id!==h._id)return this.copy_node(n,r,i,o,s)?(h&&h.delete_node(n),!0):!1;switch("#"===u.id&&("before"===i&&(i="first"),"after"===i&&(i="last")),i){case"before":i=t.inArray(r.id,u.children);break;case"after":i=t.inArray(r.id,u.children)+1;break;case"inside":case"first":i=0;break;case"last":i=u.children.length;break;default:i||(i=0)}if(i>u.children.length&&(i=u.children.length),!this.check("move_node",n,u,i))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(n.parent===u.id){for(d=u.children.concat(),_=t.inArray(n.id,d),-1!==_&&(d=t.vakata.array_remove(d,_),i>_&&i--),_=[],f=0,g=d.length;g>f;f++)_[f>=i?f+1:f]=d[f];_[i]=n.id,u.children=_,this._node_changed(u.id),this.redraw("#"===u.id)}else{for(_=n.children_d.concat(),_.push(n.id),f=0,g=n.parents.length;g>f;f++){for(d=[],y=h._model.data[n.parents[f]].children_d,m=0,v=y.length;v>m;m++)-1===t.inArray(y[m],_)&&d.push(y[m]);h._model.data[n.parents[f]].children_d=d}for(h._model.data[c].children=t.vakata.array_remove_item(h._model.data[c].children,n.id),f=0,g=u.parents.length;g>f;f++)this._model.data[u.parents[f]].children_d=this._model.data[u.parents[f]].children_d.concat(_);for(d=[],f=0,g=u.children.length;g>f;f++)d[f>=i?f+1:f]=u.children[f];for(d[i]=n.id,u.children=d,u.children_d.push(n.id),u.children_d=u.children_d.concat(n.children_d),n.parent=u.id,_=u.parents.concat(),_.unshift(u.id),y=n.parents.length,n.parents=_,_=_.concat(),f=0,g=n.children_d.length;g>f;f++)this._model.data[n.children_d[f]].parents=this._model.data[n.children_d[f]].parents.slice(0,-1*y),Array.prototype.push.apply(this._model.data[n.children_d[f]].parents,_);this._node_changed(c),this._node_changed(u.id),this.redraw("#"===c||"#"===u.id)}return o&&o.call(this,n,u,i),this.trigger("move_node",{node:n,parent:u.id,position:i,old_parent:c,is_multi:p,old_instance:h,new_instance:this}),!0},copy_node:function(n,r,i,o,s){var a,l,c,u,h,p,d,_,f,g,m;if(t.isArray(n)){for(n=n.reverse().slice(),a=0,l=n.length;l>a;a++)this.copy_node(n[a],r,i,o,s);return!0}if(n=n&&n.id?n:this.get_node(n),r=this.get_node(r),i=i===e?0:i,!r||!n||"#"===n.id)return!1;if(!i.toString().match(/^(before|after)$/)&&!s&&!this.is_loaded(r))return this.load_node(r,function(){this.copy_node(n,r,i,o,!0)});switch(_=(n.parent||"#").toString(),f=i.toString().match(/^(before|after)$/)&&"#"!==r.id?this.get_node(r.parent):r,g=this._model.data[n.id]?this:t.jstree.reference(n.id),m=!g||!g._id||this._id!==g._id,"#"===f.id&&("before"===i&&(i="first"),"after"===i&&(i="last")),i){case"before":i=t.inArray(r.id,f.children);break;case"after":i=t.inArray(r.id,f.children)+1;break;case"inside":case"first":i=0;break;case"last":i=f.children.length;break;default:i||(i=0)}if(i>f.children.length&&(i=f.children.length),!this.check("copy_node",n,f,i))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(d=g?g.get_json(n,{no_id:!0,no_data:!0,no_state:!0}):n,!d)return!1;if(d.id===!0&&delete d.id,d=this._parse_model_from_json(d,f.id,f.parents.concat()),!d)return!1;for(u=this.get_node(d),c=[],c.push(d),c=c.concat(u.children_d),this.trigger("model",{nodes:c,parent:f.id}),h=0,p=f.parents.length;p>h;h++)this._model.data[f.parents[h]].children_d=this._model.data[f.parents[h]].children_d.concat(c);for(c=[],h=0,p=f.children.length;p>h;h++)c[h>=i?h+1:h]=f.children[h];return c[i]=u.id,f.children=c,f.children_d.push(u.id),f.children_d=f.children_d.concat(u.children_d),this._node_changed(f.id),this.redraw("#"===f.id),o&&o.call(this,u,f,i),this.trigger("copy_node",{node:u,original:n,parent:f.id,position:i,old_parent:_,is_multi:m,old_instance:g,new_instance:this}),u.id},cut:function(e){if(e||(e=this._data.core.selected.concat()),t.isArray(e)||(e=[e]),!e.length)return!1;var n,r,i,l=[];for(r=0,i=e.length;i>r;r++)n=this.get_node(e[r]),n&&n.id&&"#"!==n.id&&l.push(n);return l.length?(o=l,a=this,s="move_node",this.trigger("cut",{node:e}),void 0):!1},copy:function(e){if(e||(e=this._data.core.selected.concat()),t.isArray(e)||(e=[e]),!e.length)return!1;var n,r,i,l=[];for(r=0,i=e.length;i>r;r++)n=this.get_node(e[r]),n&&n.id&&"#"!==n.id&&l.push(n);return l.length?(o=l,a=this,s="copy_node",this.trigger("copy",{node:e}),void 0):!1},get_buffer:function(){return{mode:s,node:o,inst:a}},can_paste:function(){return s!==!1&&o!==!1},paste:function(t){return t=this.get_node(t),t&&s&&s.match(/^(copy_node|move_node)$/)&&o?(this[s](o,t)&&this.trigger("paste",{parent:t.id,node:o,mode:s}),o=!1,s=!1,a=!1,void 0):!1},edit:function(e,n){if(e=this._open_to(e),!e||!e.length)return!1;var r=this._data.core.rtl,i=this.element.width(),o=e.children(".jstree-anchor"),s=t("<span>"),a="string"==typeof n?n:this.get_text(e),l=t("<div />",{css:{position:"absolute",top:"-200px",left:r?"0px":"-1000px",visibility:"hidden"}}).appendTo("body"),c=t("<input />",{value:a,"class":"jstree-rename-input",css:{padding:"0",border:"1px solid silver","box-sizing":"border-box",display:"inline-block",height:this._data.core.li_height+"px",lineHeight:this._data.core.li_height+"px",width:"150px"},blur:t.proxy(function(){var t=s.children(".jstree-rename-input"),n=t.val();""===n&&(n=a),l.remove(),s.replaceWith(o),s.remove(),this.set_text(e,a),this.rename_node(e,n)===!1&&this.set_text(e,a)},this),keydown:function(t){var e=t.which;27===e&&(this.value=a),(27===e||13===e||37===e||38===e||39===e||40===e||32===e)&&t.stopImmediatePropagation(),(27===e||13===e)&&(t.preventDefault(),this.blur())},click:function(t){t.stopImmediatePropagation()},mousedown:function(t){t.stopImmediatePropagation()},keyup:function(){c.width(Math.min(l.text("pW"+this.value).width(),i))},keypress:function(t){return 13===t.which?!1:void 0}}),u={fontFamily:o.css("fontFamily")||"",fontSize:o.css("fontSize")||"",fontWeight:o.css("fontWeight")||"",fontStyle:o.css("fontStyle")||"",fontStretch:o.css("fontStretch")||"",fontVariant:o.css("fontVariant")||"",letterSpacing:o.css("letterSpacing")||"",wordSpacing:o.css("wordSpacing")||""};this.set_text(e,""),s.attr("class",o.attr("class")).append(o.contents().clone()).append(c),o.replaceWith(s),l.css(u),c.css(u).width(Math.min(l.text("pW"+c[0].value).width(),i))[0].select()},set_theme:function(e,n){if(!e)return!1;if(n===!0){var r=this.settings.core.themes.dir;r||(r=t.jstree.path+"/themes"),n=r+"/"+e+"/style.css"}n&&-1===t.inArray(n,l)&&(t("head").append('<link rel="stylesheet" href="'+n+'" type="text/css" />'),l.push(n)),this._data.core.themes.name&&this.element.removeClass("jstree-"+this._data.core.themes.name),this._data.core.themes.name=e,this.element.addClass("jstree-"+e),this.element[this.settings.core.themes.responsive?"addClass":"removeClass"]("jstree-"+e+"-responsive"),this.trigger("set_theme",{theme:e})},get_theme:function(){return this._data.core.themes.name},set_theme_variant:function(t){this._data.core.themes.variant&&this.element.removeClass("jstree-"+this._data.core.themes.name+"-"+this._data.core.themes.variant),this._data.core.themes.variant=t,t&&this.element.addClass("jstree-"+this._data.core.themes.name+"-"+this._data.core.themes.variant)},get_theme_variant:function(){return this._data.core.themes.variant},show_stripes:function(){this._data.core.themes.stripes=!0,this.get_container_ul().addClass("jstree-striped")},hide_stripes:function(){this._data.core.themes.stripes=!1,this.get_container_ul().removeClass("jstree-striped")},toggle_stripes:function(){this._data.core.themes.stripes?this.hide_stripes():this.show_stripes()},show_dots:function(){this._data.core.themes.dots=!0,this.get_container_ul().removeClass("jstree-no-dots")},hide_dots:function(){this._data.core.themes.dots=!1,this.get_container_ul().addClass("jstree-no-dots")},toggle_dots:function(){this._data.core.themes.dots?this.hide_dots():this.show_dots()},show_icons:function(){this._data.core.themes.icons=!0,this.get_container_ul().removeClass("jstree-no-icons")},hide_icons:function(){this._data.core.themes.icons=!1,this.get_container_ul().addClass("jstree-no-icons")},toggle_icons:function(){this._data.core.themes.icons?this.hide_icons():this.show_icons()},set_icon:function(e,n){var r,i,o,s;if(t.isArray(e)){for(e=e.slice(),r=0,i=e.length;i>r;r++)this.set_icon(e[r],n);return!0}return e=this.get_node(e),e&&"#"!==e.id?(s=e.icon,e.icon=n,o=this.get_node(e,!0).children(".jstree-anchor").children(".jstree-themeicon"),n===!1?this.hide_icon(e):n===!0?o.removeClass("jstree-themeicon-custom "+s).css("background","").removeAttr("rel"):-1===n.indexOf("/")&&-1===n.indexOf(".")?(o.removeClass(s).css("background",""),o.addClass(n+" jstree-themeicon-custom").attr("rel",n)):(o.removeClass(s).css("background",""),o.addClass("jstree-themeicon-custom").css("background","url('"+n+"') center center no-repeat").attr("rel",n)),!0):!1},get_icon:function(t){return t=this.get_node(t),t&&"#"!==t.id?t.icon:!1},hide_icon:function(e){var n,r;if(t.isArray(e)){for(e=e.slice(),n=0,r=e.length;r>n;n++)this.hide_icon(e[n]);return!0}return e=this.get_node(e),e&&"#"!==e?(e.icon=!1,this.get_node(e,!0).children("a").children(".jstree-themeicon").addClass("jstree-themeicon-hidden"),!0):!1},show_icon:function(e){var n,r,i;if(t.isArray(e)){for(e=e.slice(),n=0,r=e.length;r>n;n++)this.show_icon(e[n]);return!0}return e=this.get_node(e),e&&"#"!==e?(i=this.get_node(e,!0),e.icon=i.length?i.children("a").children(".jstree-themeicon").attr("rel"):!0,e.icon||(e.icon=!0),i.children("a").children(".jstree-themeicon").removeClass("jstree-themeicon-hidden"),!0):!1}},t.vakata={},t.fn.vakata_reverse=[].reverse,t.vakata.attributes=function(e,n){e=t(e)[0];var r=n?{}:[];return e&&e.attributes&&t.each(e.attributes,function(e,i){-1===t.inArray(i.nodeName.toLowerCase(),["style","contenteditable","hasfocus","tabindex"])&&null!==i.nodeValue&&""!==t.trim(i.nodeValue)&&(n?r[i.nodeName]=i.nodeValue:r.push(i.nodeName))}),r},t.vakata.array_unique=function(t){var e,n,r,i=[];for(e=0,r=t.length;r>e;e++){for(n=0;e>=n&&t[e]!==t[n];n++);n===e&&i.push(t[e])}return i},t.vakata.array_remove=function(t,e,n){var r=t.slice((n||e)+1||t.length);return t.length=0>e?t.length+e:e,t.push.apply(t,r),t},t.vakata.array_remove_item=function(e,n){var r=t.inArray(n,e);return-1!==r?t.vakata.array_remove(e,r):e},function(){var e={},n=function(t){t=t.toLowerCase();var e=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}},r=n(window.navigator.userAgent);r.browser&&(e[r.browser]=!0,e.version=r.version),e.chrome?e.webkit=!0:e.webkit&&(e.safari=!0),t.vakata.browser=e}(),t.vakata.browser.msie&&t.vakata.browser.version<8&&(t.jstree.defaults.core.animation=0);var p=document.createElement("I");p.className="jstree-icon jstree-checkbox",t.jstree.defaults.checkbox={visible:!0,three_state:!0,whole_node:!0,keep_selected_style:!0},t.jstree.plugins.checkbox=function(e,n){this.bind=function(){n.bind.call(this),this._data.checkbox.uto=!1,this.element.on("init.jstree",t.proxy(function(){this._data.checkbox.visible=this.settings.checkbox.visible,this.settings.checkbox.keep_selected_style||this.element.addClass("jstree-checkbox-no-clicked")
            },this)).on("loading.jstree",t.proxy(function(){this[this._data.checkbox.visible?"show_checkboxes":"hide_checkboxes"]()},this)),this.settings.checkbox.three_state&&this.element.on("changed.jstree move_node.jstree copy_node.jstree redraw.jstree open_node.jstree",t.proxy(function(){this._data.checkbox.uto&&clearTimeout(this._data.checkbox.uto),this._data.checkbox.uto=setTimeout(t.proxy(this._undetermined,this),50)},this)).on("model.jstree",t.proxy(function(e,n){var r,i,o,s,a,l,c=this._model.data,u=c[n.parent],h=n.nodes,p=[];if(u.state.selected){for(i=0,o=h.length;o>i;i++)c[h[i]].state.selected=!0;this._data.core.selected=this._data.core.selected.concat(h)}else for(i=0,o=h.length;o>i;i++)if(c[h[i]].state.selected){for(s=0,a=c[h[i]].children_d.length;a>s;s++)c[c[h[i]].children_d[s]].state.selected=!0;this._data.core.selected=this._data.core.selected.concat(c[h[i]].children_d)}for(i=0,o=u.children_d.length;o>i;i++)c[u.children_d[i]].children.length||p.push(c[u.children_d[i]].parent);for(p=t.vakata.array_unique(p),s=0,a=p.length;a>s;s++)for(u=c[p[s]];u&&"#"!==u.id;){for(r=0,i=0,o=u.children.length;o>i;i++)r+=c[u.children[i]].state.selected;if(r!==o)break;u.state.selected=!0,this._data.core.selected.push(u.id),l=this.get_node(u,!0),l&&l.length&&l.children(".jstree-anchor").addClass("jstree-clicked"),u=this.get_node(u.parent)}this._data.core.selected=t.vakata.array_unique(this._data.core.selected)},this)).on("select_node.jstree",t.proxy(function(e,n){var r,i,o,s,a=n.node,l=this._model.data,c=this.get_node(a.parent),u=this.get_node(a,!0);for(this._data.core.selected=t.vakata.array_unique(this._data.core.selected.concat(a.children_d)),r=0,i=a.children_d.length;i>r;r++)l[a.children_d[r]].state.selected=!0;for(;c&&"#"!==c.id;){for(o=0,r=0,i=c.children.length;i>r;r++)o+=l[c.children[r]].state.selected;if(o!==i)break;c.state.selected=!0,this._data.core.selected.push(c.id),s=this.get_node(c,!0),s&&s.length&&s.children(".jstree-anchor").addClass("jstree-clicked"),c=this.get_node(c.parent)}u.length&&u.find(".jstree-anchor").addClass("jstree-clicked")},this)).on("deselect_node.jstree",t.proxy(function(e,n){var r,i,o,s=n.node,a=this.get_node(s,!0);for(r=0,i=s.children_d.length;i>r;r++)this._model.data[s.children_d[r]].state.selected=!1;for(r=0,i=s.parents.length;i>r;r++)this._model.data[s.parents[r]].state.selected=!1,o=this.get_node(s.parents[r],!0),o&&o.length&&o.children(".jstree-anchor").removeClass("jstree-clicked");for(o=[],r=0,i=this._data.core.selected.length;i>r;r++)-1===t.inArray(this._data.core.selected[r],s.children_d)&&-1===t.inArray(this._data.core.selected[r],s.parents)&&o.push(this._data.core.selected[r]);this._data.core.selected=t.vakata.array_unique(o),a.length&&a.find(".jstree-anchor").removeClass("jstree-clicked")},this)).on("delete_node.jstree",t.proxy(function(t,e){for(var n,r,i,o,s=this.get_node(e.parent),a=this._model.data;s&&"#"!==s.id;){for(i=0,n=0,r=s.children.length;r>n;n++)i+=a[s.children[n]].state.selected;if(i!==r)break;s.state.selected=!0,this._data.core.selected.push(s.id),o=this.get_node(s,!0),o&&o.length&&o.children(".jstree-anchor").addClass("jstree-clicked"),s=this.get_node(s.parent)}},this)).on("move_node.jstree",t.proxy(function(e,n){var r,i,o,s,a,l=n.is_multi,c=n.old_parent,u=this.get_node(n.parent),h=this._model.data;if(!l)for(r=this.get_node(c);r&&"#"!==r.id;){for(i=0,o=0,s=r.children.length;s>o;o++)i+=h[r.children[o]].state.selected;if(i!==s)break;r.state.selected=!0,this._data.core.selected.push(r.id),a=this.get_node(r,!0),a&&a.length&&a.children(".jstree-anchor").addClass("jstree-clicked"),r=this.get_node(r.parent)}for(r=u;r&&"#"!==r.id;){for(i=0,o=0,s=r.children.length;s>o;o++)i+=h[r.children[o]].state.selected;if(i===s)r.state.selected||(r.state.selected=!0,this._data.core.selected.push(r.id),a=this.get_node(r,!0),a&&a.length&&a.children(".jstree-anchor").addClass("jstree-clicked"));else{if(!r.state.selected)break;r.state.selected=!1,this._data.core.selected=t.vakata.array_remove_item(this._data.core.selected,r.id),a=this.get_node(r,!0),a&&a.length&&a.children(".jstree-anchor").removeClass("jstree-clicked")}r=this.get_node(r.parent)}},this))},this._undetermined=function(){var e,n,r=this._model.data,i=this._data.core.selected,o=[],s=this;for(e=0,n=i.length;n>e;e++)r[i[e]]&&r[i[e]].parents&&(o=o.concat(r[i[e]].parents));for(this.element.find(".jstree-closed").not(":has(ul)").each(function(){var t=s.get_node(this);!t.state.loaded&&t.original&&t.original.state&&t.original.state.undetermined&&t.original.state.undetermined===!0&&(o.push(t.id),o=o.concat(t.parents))}),o=t.vakata.array_unique(o),e=t.inArray("#",o),-1!==e&&(o=t.vakata.array_remove(o,e)),this.element.find(".jstree-undetermined").removeClass("jstree-undetermined"),e=0,n=o.length;n>e;e++)r[o[e]].state.selected||(i=this.get_node(o[e],!0),i&&i.length&&i.children("a").children(".jstree-checkbox").addClass("jstree-undetermined"))},this.redraw_node=function(e,r,i){if(e=n.redraw_node.call(this,e,r,i)){var o=e.getElementsByTagName("A")[0];o.insertBefore(p.cloneNode(),o.childNodes[0])}return!i&&this.settings.checkbox.three_state&&(this._data.checkbox.uto&&clearTimeout(this._data.checkbox.uto),this._data.checkbox.uto=setTimeout(t.proxy(this._undetermined,this),50)),e},this.activate_node=function(e,r){return(this.settings.checkbox.whole_node||t(r.target).hasClass("jstree-checkbox"))&&(r.ctrlKey=!0),n.activate_node.call(this,e,r)},this.show_checkboxes=function(){this._data.core.themes.checkboxes=!0,this.element.children("ul").removeClass("jstree-no-checkboxes")},this.hide_checkboxes=function(){this._data.core.themes.checkboxes=!1,this.element.children("ul").addClass("jstree-no-checkboxes")},this.toggle_checkboxes=function(){this._data.core.themes.checkboxes?this.hide_checkboxes():this.show_checkboxes()}},t.jstree.defaults.contextmenu={select_node:!0,show_at_node:!0,items:function(){return{create:{separator_before:!1,separator_after:!0,_disabled:!1,label:"Create",action:function(e){var n=t.jstree.reference(e.reference),r=n.get_node(e.reference);n.create_node(r,{},"last",function(t){setTimeout(function(){n.edit(t)},0)})}},rename:{separator_before:!1,separator_after:!1,_disabled:!1,label:"Rename",action:function(e){var n=t.jstree.reference(e.reference),r=n.get_node(e.reference);n.edit(r)}},remove:{separator_before:!1,icon:!1,separator_after:!1,_disabled:!1,label:"Delete",action:function(e){var n=t.jstree.reference(e.reference),r=n.get_node(e.reference);n.is_selected(r)?n.delete_node(n.get_selected()):n.delete_node(r)}},ccp:{separator_before:!0,icon:!1,separator_after:!1,label:"Edit",action:!1,submenu:{cut:{separator_before:!1,separator_after:!1,label:"Cut",action:function(e){var n=t.jstree.reference(e.reference),r=n.get_node(e.reference);n.is_selected(r)?n.cut(n.get_selected()):n.cut(r)}},copy:{separator_before:!1,icon:!1,separator_after:!1,label:"Copy",action:function(e){var n=t.jstree.reference(e.reference),r=n.get_node(e.reference);n.is_selected(r)?n.copy(n.get_selected()):n.copy(r)}},paste:{separator_before:!1,icon:!1,_disabled:function(e){return!t.jstree.reference(e.reference).can_paste()},separator_after:!1,label:"Paste",action:function(e){var n=t.jstree.reference(e.reference),r=n.get_node(e.reference);n.paste(r)}}}}}}},t.jstree.plugins.contextmenu=function(n,r){this.bind=function(){r.bind.call(this),this.element.on("contextmenu.jstree",".jstree-anchor",t.proxy(function(t){t.preventDefault(),this.is_loading(t.currentTarget)||this.show_contextmenu(t.currentTarget,t.pageX,t.pageY,t)},this)).on("click.jstree",".jstree-anchor",t.proxy(function(){this._data.contextmenu.visible&&t.vakata.context.hide()},this)),t(document).on("context_hide.vakata",t.proxy(function(){this._data.contextmenu.visible=!1},this))},this.teardown=function(){this._data.contextmenu.visible&&t.vakata.context.hide(),r.teardown.call(this)},this.show_contextmenu=function(n,r,i,o){if(n=this.get_node(n),!n||"#"===n.id)return!1;var s=this.settings.contextmenu,a=this.get_node(n,!0),l=a.children(".jstree-anchor"),c=!1,u=!1;(s.show_at_node||r===e||i===e)&&(c=l.offset(),r=c.left,i=c.top+this._data.core.li_height),this.settings.contextmenu.select_node&&!this.is_selected(n)&&(this.deselect_all(),this.select_node(n,!1,!1,o)),u=s.items,t.isFunction(u)&&(u=u.call(this,n,t.proxy(function(t){this._show_contextmenu(n,r,i,t)},this))),t.isPlainObject(u)&&this._show_contextmenu(n,r,i,u)},this._show_contextmenu=function(e,n,r,i){var o=this.get_node(e,!0),s=o.children(".jstree-anchor");t(document).one("context_show.vakata",t.proxy(function(e,n){var r="jstree-contextmenu jstree-"+this.get_theme()+"-contextmenu";t(n.element).addClass(r)},this)),this._data.contextmenu.visible=!0,t.vakata.context.show(s,{x:n,y:r},i),this.trigger("show_contextmenu",{node:e,x:n,y:r})}},function(t){var e=!1,n={element:!1,reference:!1,position_x:0,position_y:0,items:[],html:"",is_visible:!1};t.vakata.context={settings:{hide_onmouseleave:0,icons:!0},_trigger:function(e){t(document).triggerHandler("context_"+e+".vakata",{reference:n.reference,element:n.element,position:{x:n.position_x,y:n.position_y}})},_execute:function(e){return e=n.items[e],e&&(!e._disabled||t.isFunction(e._disabled)&&!e._disabled({item:e,reference:n.reference,element:n.element}))&&e.action?e.action.call(null,{item:e,reference:n.reference,element:n.element,position:{x:n.position_x,y:n.position_y}}):!1},_parse:function(e,r){if(!e)return!1;r||(n.html="",n.items=[]);var i,o="",s=!1;return r&&(o+="<ul>"),t.each(e,function(e,r){return r?(n.items.push(r),!s&&r.separator_before&&(o+="<li class='vakata-context-separator'><a href='#' "+(t.vakata.context.settings.icons?"":'style="margin-left:0px;"')+">&#160;<"+"/a><"+"/li>"),s=!1,o+="<li class='"+(r._class||"")+(r._disabled===!0||t.isFunction(r._disabled)&&r._disabled({item:r,reference:n.reference,element:n.element})?" vakata-contextmenu-disabled ":"")+"' "+(r.shortcut?" data-shortcut='"+r.shortcut+"' ":"")+">",o+="<a href='#' rel='"+(n.items.length-1)+"'>",t.vakata.context.settings.icons&&(o+="<i ",r.icon&&(o+=-1!==r.icon.indexOf("/")||-1!==r.icon.indexOf(".")?" style='background:url(\""+r.icon+"\") center center no-repeat' ":" class='"+r.icon+"' "),o+="></i><span class='vakata-contextmenu-sep'>&#160;</span>"),o+=r.label+(r.shortcut?' <span class="vakata-contextmenu-shortcut vakata-contextmenu-shortcut-'+r.shortcut+'">'+(r.shortcut_label||"")+"</span>":"")+"<"+"/a>",r.submenu&&(i=t.vakata.context._parse(r.submenu,!0),i&&(o+=i)),o+="</li>",r.separator_after&&(o+="<li class='vakata-context-separator'><a href='#' "+(t.vakata.context.settings.icons?"":'style="margin-left:0px;"')+">&#160;<"+"/a><"+"/li>",s=!0),void 0):!0}),o=o.replace(/<li class\='vakata-context-separator'\><\/li\>$/,""),r&&(o+="</ul>"),r||(n.html=o,t.vakata.context._trigger("parse")),o.length>10?o:!1},_show_submenu:function(n){if(n=t(n),n.length&&n.children("ul").length){var r=n.children("ul"),i=n.offset().left+n.outerWidth(),o=n.offset().top,s=r.width(),a=r.height(),l=t(window).width()+t(window).scrollLeft(),c=t(window).height()+t(window).scrollTop();e?n[i-(s+10+n.outerWidth())<0?"addClass":"removeClass"]("vakata-context-left"):n[i+s+10>l?"addClass":"removeClass"]("vakata-context-right"),o+a+10>c&&r.css("bottom","-1px"),r.show()}},show:function(r,i,o){var s,a,l,c,u,h,p,d,_=!0;switch(n.element&&n.element.length&&n.element.width(""),_){case!i&&!r:return!1;case!!i&&!!r:n.reference=r,n.position_x=i.x,n.position_y=i.y;break;case!i&&!!r:n.reference=r,s=r.offset(),n.position_x=s.left+r.outerHeight(),n.position_y=s.top;break;case!!i&&!r:n.position_x=i.x,n.position_y=i.y}r&&!o&&t(r).data("vakata_contextmenu")&&(o=t(r).data("vakata_contextmenu")),t.vakata.context._parse(o)&&n.element.html(n.html),n.items.length&&(a=n.element,l=n.position_x,c=n.position_y,u=a.width(),h=a.height(),p=t(window).width()+t(window).scrollLeft(),d=t(window).height()+t(window).scrollTop(),e&&(l-=a.outerWidth(),l<t(window).scrollLeft()+20&&(l=t(window).scrollLeft()+20)),l+u+20>p&&(l=p-(u+20)),c+h+20>d&&(c=d-(h+20)),n.element.css({left:l,top:c}).show().find("a:eq(0)").focus().parent().addClass("vakata-context-hover"),n.is_visible=!0,t.vakata.context._trigger("show"))},hide:function(){n.is_visible&&(n.element.hide().find("ul").hide().end().find(":focus").blur(),n.is_visible=!1,t.vakata.context._trigger("hide"))}},t(function(){e="rtl"===t("body").css("direction");var r=!1;n.element=t("<ul class='vakata-context'></ul>"),n.element.on("mouseenter","li",function(e){e.stopImmediatePropagation(),t.contains(this,e.relatedTarget)||(r&&clearTimeout(r),n.element.find(".vakata-context-hover").removeClass("vakata-context-hover").end(),t(this).siblings().find("ul").hide().end().end().parentsUntil(".vakata-context","li").addBack().addClass("vakata-context-hover"),t.vakata.context._show_submenu(this))}).on("mouseleave","li",function(e){t.contains(this,e.relatedTarget)||t(this).find(".vakata-context-hover").addBack().removeClass("vakata-context-hover")}).on("mouseleave",function(){t(this).find(".vakata-context-hover").removeClass("vakata-context-hover"),t.vakata.context.settings.hide_onmouseleave&&(r=setTimeout(function(){return function(){t.vakata.context.hide()}}(this),t.vakata.context.settings.hide_onmouseleave))}).on("click","a",function(t){t.preventDefault()}).on("mouseup","a",function(){t(this).blur().parent().hasClass("vakata-context-disabled")||t.vakata.context._execute(t(this).attr("rel"))===!1||t.vakata.context.hide()}).on("keydown","a",function(e){var r=null;switch(e.which){case 13:case 32:e.type="mouseup",e.preventDefault(),t(e.currentTarget).trigger(e);break;case 37:n.is_visible&&(n.element.find(".vakata-context-hover").last().parents("li:eq(0)").find("ul").hide().find(".vakata-context-hover").removeClass("vakata-context-hover").end().end().children("a").focus(),e.stopImmediatePropagation(),e.preventDefault());break;case 38:n.is_visible&&(r=n.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").prevAll("li:not(.vakata-context-separator)").first(),r.length||(r=n.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").last()),r.addClass("vakata-context-hover").children("a").focus(),e.stopImmediatePropagation(),e.preventDefault());break;case 39:n.is_visible&&(n.element.find(".vakata-context-hover").last().children("ul").show().children("li:not(.vakata-context-separator)").removeClass("vakata-context-hover").first().addClass("vakata-context-hover").children("a").focus(),e.stopImmediatePropagation(),e.preventDefault());break;case 40:n.is_visible&&(r=n.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").nextAll("li:not(.vakata-context-separator)").first(),r.length||(r=n.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").first()),r.addClass("vakata-context-hover").children("a").focus(),e.stopImmediatePropagation(),e.preventDefault());break;case 27:t.vakata.context.hide(),e.preventDefault()}}).on("keydown",function(t){t.preventDefault();var e=n.element.find(".vakata-contextmenu-shortcut-"+t.which).parent();e.parent().not(".vakata-context-disabled")&&e.mouseup()}).appendTo("body"),t(document).on("mousedown",function(e){n.is_visible&&!t.contains(n.element[0],e.target)&&t.vakata.context.hide()}).on("context_show.vakata",function(){n.element.find("li:has(ul)").children("a").addClass("vakata-context-parent"),e&&n.element.addClass("vakata-context-rtl").css("direction","rtl"),n.element.find("ul").hide().end()})})}(t),t.jstree.defaults.dnd={copy:!0,open_timeout:500,is_draggable:!0,check_while_dragging:!0},t.jstree.plugins.dnd=function(e,n){this.bind=function(){n.bind.call(this),this.element.on("mousedown touchstart",".jstree-anchor",t.proxy(function(e){var n=this.get_node(e.target),r=this.is_selected(n)?this.get_selected().length:1;return n&&n.id&&"#"!==n.id&&(1===e.which||"touchstart"===e.type)&&(this.settings.dnd.is_draggable===!0||t.isFunction(this.settings.dnd.is_draggable)&&this.settings.dnd.is_draggable.call(this,n))?(this.element.trigger("mousedown.jstree"),t.vakata.dnd.start(e,{jstree:!0,origin:this,obj:this.get_node(n,!0),nodes:r>1?this.get_selected():[n.id]},'<div id="jstree-dnd" class="jstree-'+this.get_theme()+'"><i class="jstree-icon jstree-er"></i>'+(r>1?r+" "+this.get_string("nodes"):this.get_text(e.currentTarget,!0))+'<ins class="jstree-copy" style="display:none;">+</ins></div>')):void 0},this))}},t(function(){var e=!1,n=!1,r=!1,i=t('<div id="jstree-marker">&#160;</div>').hide().appendTo("body");t(document).bind("dnd_start.vakata",function(){e=!1}).bind("dnd_move.vakata",function(o,s){if(r&&clearTimeout(r),s.data.jstree&&(!s.event.target.id||"jstree-marker"!==s.event.target.id)){var a,l,c,u,h,p,d,_,f,g,m,v,y=t.jstree.reference(s.event.target),b=!1,w=!1,x=!1;if(y&&y._data&&y._data.dnd)if(i.attr("class","jstree-"+y.get_theme()),s.helper.children().attr("class","jstree-"+y.get_theme()).find(".jstree-copy:eq(0)")[s.data.origin&&s.data.origin.settings.dnd.copy&&(s.event.metaKey||s.event.ctrlKey)?"show":"hide"](),s.event.target!==y.element[0]&&s.event.target!==y.get_container_ul()[0]||0!==y.get_container_ul().children().length){if(b=t(s.event.target).closest("a"),b&&b.length&&b.parent().is(".jstree-closed, .jstree-open, .jstree-leaf")&&(w=b.offset(),x=s.event.pageY-w.top,c=b.height(),p=c/3>x?["b","i","a"]:x>c-c/3?["a","i","b"]:x>c/2?["i","a","b"]:["i","b","a"],t.each(p,function(o,x){switch(x){case"b":a=w.left-6,l=w.top-5,u=y.get_parent(b),h=b.parent().index();break;case"i":a=w.left-2,l=w.top-5+c/2+1,u=b.parent(),h=0;break;case"a":a=w.left-6,l=w.top-5+c,u=y.get_parent(b),h=b.parent().index()+1}for(d=!0,_=0,f=s.data.nodes.length;f>_;_++)if(g=s.data.origin&&s.data.origin.settings.dnd.copy&&(s.event.metaKey||s.event.ctrlKey)?"copy_node":"move_node",m=h,"move_node"===g&&"a"===x&&s.data.origin&&s.data.origin===y&&u===y.get_parent(s.data.nodes[_])&&(v=y.get_node(u),m>t.inArray(s.data.nodes[_],v.children)&&(m-=1)),d=d&&(y&&y.settings&&y.settings.dnd&&y.settings.dnd.check_while_dragging===!1||y.check(g,s.data.origin&&s.data.origin!==y?s.data.origin.get_node(s.data.nodes[_]):s.data.nodes[_],u,m)),!d){y&&y.last_error&&(n=y.last_error());break}return d?("i"===x&&b.parent().is(".jstree-closed")&&y.settings.dnd.open_timeout&&(r=setTimeout(function(t,e){return function(){t.open_node(e)}}(y,b),y.settings.dnd.open_timeout)),e={ins:y,par:u,pos:h},i.css({left:a+"px",top:l+"px"}).show(),s.helper.find(".jstree-icon:eq(0)").removeClass("jstree-er").addClass("jstree-ok"),n={},p=!0,!1):void 0}),p===!0))return}else{for(d=!0,_=0,f=s.data.nodes.length;f>_&&(d=d&&y.check(s.data.origin&&s.data.origin.settings.dnd.copy&&(s.event.metaKey||s.event.ctrlKey)?"copy_node":"move_node",s.data.origin&&s.data.origin!==y?s.data.origin.get_node(s.data.nodes[_]):s.data.nodes[_],"#","last"),d);_++);if(d)return e={ins:y,par:"#",pos:"last"},i.hide(),s.helper.find(".jstree-icon:eq(0)").removeClass("jstree-er").addClass("jstree-ok"),void 0}e=!1,s.helper.find(".jstree-icon").removeClass("jstree-ok").addClass("jstree-er"),i.hide()}}).bind("dnd_scroll.vakata",function(t,n){n.data.jstree&&(i.hide(),e=!1,n.helper.find(".jstree-icon:eq(0)").removeClass("jstree-ok").addClass("jstree-er"))}).bind("dnd_stop.vakata",function(o,s){if(r&&clearTimeout(r),s.data.jstree){i.hide();var a,l,c=[];if(e){for(a=0,l=s.data.nodes.length;l>a;a++)c[a]=s.data.origin?s.data.origin.get_node(s.data.nodes[a]):s.data.nodes[a];e.ins[s.data.origin&&s.data.origin.settings.dnd.copy&&(s.event.metaKey||s.event.ctrlKey)?"copy_node":"move_node"](c,e.par,e.pos)}else a=t(s.event.target).closest(".jstree"),a.length&&n&&n.error&&"check"===n.error&&(a=a.jstree(!0),a&&a.settings.core.error.call(this,n))}}).bind("keyup keydown",function(e,n){n=t.vakata.dnd._get(),n.data&&n.data.jstree&&n.helper.find(".jstree-copy:eq(0)")[n.data.origin&&n.data.origin.settings.dnd.copy&&(e.metaKey||e.ctrlKey)?"show":"hide"]()})}),function(t){t.fn.vakata_reverse=[].reverse;var e={element:!1,is_down:!1,is_drag:!1,helper:!1,helper_w:0,data:!1,init_x:0,init_y:0,scroll_l:0,scroll_t:0,scroll_e:!1,scroll_i:!1};t.vakata.dnd={settings:{scroll_speed:10,scroll_proximity:20,helper_left:5,helper_top:10,threshold:5},_trigger:function(e,n){var r=t.vakata.dnd._get();r.event=n,t(document).triggerHandler("dnd_"+e+".vakata",r)},_get:function(){return{data:e.data,element:e.element,helper:e.helper}},_clean:function(){e.helper&&e.helper.remove(),e.scroll_i&&(clearInterval(e.scroll_i),e.scroll_i=!1),e={element:!1,is_down:!1,is_drag:!1,helper:!1,helper_w:0,data:!1,init_x:0,init_y:0,scroll_l:0,scroll_t:0,scroll_e:!1,scroll_i:!1},t(document).off("mousemove touchmove",t.vakata.dnd.drag),t(document).off("mouseup touchend",t.vakata.dnd.stop)},_scroll:function(n){if(!e.scroll_e||!e.scroll_l&&!e.scroll_t)return e.scroll_i&&(clearInterval(e.scroll_i),e.scroll_i=!1),!1;if(!e.scroll_i)return e.scroll_i=setInterval(t.vakata.dnd._scroll,100),!1;if(n===!0)return!1;var r=e.scroll_e.scrollTop(),i=e.scroll_e.scrollLeft();e.scroll_e.scrollTop(r+e.scroll_t*t.vakata.dnd.settings.scroll_speed),e.scroll_e.scrollLeft(i+e.scroll_l*t.vakata.dnd.settings.scroll_speed),(r!==e.scroll_e.scrollTop()||i!==e.scroll_e.scrollLeft())&&t.vakata.dnd._trigger("scroll",e.scroll_e)},start:function(n,r,i){"touchstart"===n.type&&n.originalEvent&&n.originalEvent.changedTouches&&n.originalEvent.changedTouches[0]&&(n.pageX=n.originalEvent.changedTouches[0].pageX,n.pageY=n.originalEvent.changedTouches[0].pageY,n.target=document.elementFromPoint(n.originalEvent.changedTouches[0].pageX-window.pageXOffset,n.originalEvent.changedTouches[0].pageY-window.pageYOffset)),e.is_drag&&t.vakata.dnd.stop({});try{n.currentTarget.unselectable="on",n.currentTarget.onselectstart=function(){return!1},n.currentTarget.style&&(n.currentTarget.style.MozUserSelect="none")}catch(o){}return e.init_x=n.pageX,e.init_y=n.pageY,e.data=r,e.is_down=!0,e.element=n.currentTarget,i!==!1&&(e.helper=t("<div id='vakata-dnd'></div>").html(i).css({display:"block",margin:"0",padding:"0",position:"absolute",top:"-2000px",lineHeight:"16px",zIndex:"10000"})),t(document).bind("mousemove touchmove",t.vakata.dnd.drag),t(document).bind("mouseup touchend",t.vakata.dnd.stop),!1},drag:function(n){if("touchmove"===n.type&&n.originalEvent&&n.originalEvent.changedTouches&&n.originalEvent.changedTouches[0]&&(n.pageX=n.originalEvent.changedTouches[0].pageX,n.pageY=n.originalEvent.changedTouches[0].pageY,n.target=document.elementFromPoint(n.originalEvent.changedTouches[0].pageX-window.pageXOffset,n.originalEvent.changedTouches[0].pageY-window.pageYOffset)),e.is_down){if(!e.is_drag){if(!(Math.abs(n.pageX-e.init_x)>t.vakata.dnd.settings.threshold||Math.abs(n.pageY-e.init_y)>t.vakata.dnd.settings.threshold))return;e.helper&&(e.helper.appendTo("body"),e.helper_w=e.helper.outerWidth()),e.is_drag=!0,t.vakata.dnd._trigger("start",n)}var r=!1,i=!1,o=!1,s=!1,a=!1,l=!1,c=!1,u=!1,h=!1,p=!1;e.scroll_t=0,e.scroll_l=0,e.scroll_e=!1,t(n.target).parentsUntil("body").addBack().vakata_reverse().filter(function(){return/^auto|scroll$/.test(t(this).css("overflow"))&&(this.scrollHeight>this.offsetHeight||this.scrollWidth>this.offsetWidth)}).each(function(){var r=t(this),i=r.offset();return this.scrollHeight>this.offsetHeight&&(i.top+r.height()-n.pageY<t.vakata.dnd.settings.scroll_proximity&&(e.scroll_t=1),n.pageY-i.top<t.vakata.dnd.settings.scroll_proximity&&(e.scroll_t=-1)),this.scrollWidth>this.offsetWidth&&(i.left+r.width()-n.pageX<t.vakata.dnd.settings.scroll_proximity&&(e.scroll_l=1),n.pageX-i.left<t.vakata.dnd.settings.scroll_proximity&&(e.scroll_l=-1)),e.scroll_t||e.scroll_l?(e.scroll_e=t(this),!1):void 0}),e.scroll_e||(r=t(document),i=t(window),o=r.height(),s=i.height(),a=r.width(),l=i.width(),c=r.scrollTop(),u=r.scrollLeft(),o>s&&n.pageY-c<t.vakata.dnd.settings.scroll_proximity&&(e.scroll_t=-1),o>s&&s-(n.pageY-c)<t.vakata.dnd.settings.scroll_proximity&&(e.scroll_t=1),a>l&&n.pageX-u<t.vakata.dnd.settings.scroll_proximity&&(e.scroll_l=-1),a>l&&l-(n.pageX-u)<t.vakata.dnd.settings.scroll_proximity&&(e.scroll_l=1),(e.scroll_t||e.scroll_l)&&(e.scroll_e=r)),e.scroll_e&&t.vakata.dnd._scroll(!0),e.helper&&(h=parseInt(n.pageY+t.vakata.dnd.settings.helper_top,10),p=parseInt(n.pageX+t.vakata.dnd.settings.helper_left,10),o&&h+25>o&&(h=o-50),a&&p+e.helper_w>a&&(p=a-(e.helper_w+2)),e.helper.css({left:p+"px",top:h+"px"})),t.vakata.dnd._trigger("move",n)}},stop:function(n){"touchend"===n.type&&n.originalEvent&&n.originalEvent.changedTouches&&n.originalEvent.changedTouches[0]&&(n.pageX=n.originalEvent.changedTouches[0].pageX,n.pageY=n.originalEvent.changedTouches[0].pageY,n.target=document.elementFromPoint(n.originalEvent.changedTouches[0].pageX-window.pageXOffset,n.originalEvent.changedTouches[0].pageY-window.pageYOffset)),e.is_drag&&t.vakata.dnd._trigger("stop",n),t.vakata.dnd._clean()}}}(jQuery),t.jstree.defaults.search={ajax:!1,fuzzy:!0,case_sensitive:!1,show_only_matches:!1,close_opened_onclear:!0},t.jstree.plugins.search=function(e,n){this.bind=function(){n.bind.call(this),this._data.search.str="",this._data.search.dom=t(),this._data.search.res=[],this._data.search.opn=[],this._data.search.sln=null,this.settings.search.show_only_matches&&this.element.on("search.jstree",function(e,n){n.nodes.length&&(t(this).find("li").hide().filter(".jstree-last").filter(function(){return this.nextSibling}).removeClass("jstree-last"),n.nodes.parentsUntil(".jstree").addBack().show().filter("ul").each(function(){t(this).children("li:visible").eq(-1).addClass("jstree-last")}))}).on("clear_search.jstree",function(e,n){n.nodes.length&&t(this).find("li").css("display","").filter(".jstree-last").filter(function(){return this.nextSibling}).removeClass("jstree-last")})},this.search=function(e,n){if(e===!1||""===t.trim(e))return this.clear_search();var r,i,o=this.settings.search,s=o.ajax?t.extend({},o.ajax):!1,a=null,l=[],c=[];if(this._data.search.res.length&&this.clear_search(),!n&&s!==!1)return s.data||(s.data={}),s.data.str=e,t.ajax(s).fail(t.proxy(function(){this._data.core.last_error={error:"ajax",plugin:"search",id:"search_01",reason:"Could not load search parents",data:JSON.stringify(s)},this.settings.core.error.call(this,this._data.core.last_error)},this)).done(t.proxy(function(n){n&&n.d&&(n=n.d),this._data.search.sln=t.isArray(n)?n:[],this._search_load(e)},this));if(this._data.search.str=e,this._data.search.dom=t(),this._data.search.res=[],this._data.search.opn=[],a=new t.vakata.search(e,!0,{caseSensitive:o.case_sensitive,fuzzy:o.fuzzy}),t.each(this._model.data,function(t,e){e.text&&a.search(e.text).isMatch&&(l.push(t),c=c.concat(e.parents))}),l.length){for(c=t.vakata.array_unique(c),this._search_open(c),r=0,i=l.length;i>r;r++)a=this.get_node(l[r],!0),a&&(this._data.search.dom=this._data.search.dom.add(a));this._data.search.res=l,this._data.search.dom.children(".jstree-anchor").addClass("jstree-search")}this.trigger("search",{nodes:this._data.search.dom,str:e,res:this._data.search.res})},this.clear_search=function(){this._data.search.dom.children(".jstree-anchor").removeClass("jstree-search"),this.settings.search.close_opened_onclear&&this.close_node(this._data.search.opn,0),this.trigger("clear_search",{nodes:this._data.search.dom,str:this._data.search.str,res:this._data.search.res}),this._data.search.str="",this._data.search.res=[],this._data.search.opn=[],this._data.search.dom=t()},this._search_open=function(e){var n=this;t.each(e.concat([]),function(t,r){r=document.getElementById(r),r&&n.is_closed(r)&&(n._data.search.opn.push(r.id),n.open_node(r,function(){n._search_open(e)},0))})},this._search_load=function(e){var n=!0,r=this,i=r._model.data;t.isArray(this._data.search.sln)&&(this._data.search.sln.length?(t.each(this._data.search.sln,function(o,s){i[s]&&(t.vakata.array_remove_item(r._data.search.sln,s),i[s].state.loaded||(r.load_node(s,function(t,n){n&&r._search_load(e)}),n=!1))}),n&&(this._data.search.sln=[],this._search_load(e))):(this._data.search.sln=null,this.search(e,!0)))}},function(t){t.vakata.search=function(t,e,n){n=n||{},n.fuzzy!==!1&&(n.fuzzy=!0),t=n.caseSensitive?t:t.toLowerCase();var r,i,o,s,a=n.location||0,l=n.distance||100,c=n.threshold||.6,u=t.length;return u>32&&(n.fuzzy=!1),n.fuzzy&&(r=1<<u-1,i=function(){var e={},n=0;for(n=0;u>n;n++)e[t.charAt(n)]=0;for(n=0;u>n;n++)e[t.charAt(n)]|=1<<u-n-1;return e}(),o=function(t,e){var n=t/u,r=Math.abs(a-e);return l?n+r/l:r?1:n}),s=function(e){if(e=n.caseSensitive?e:e.toLowerCase(),t===e||-1!==e.indexOf(t))return{isMatch:!0,score:0};if(!n.fuzzy)return{isMatch:!1,score:1};var s,l,h,p,d,_,f,g,m,v=e.length,y=c,b=e.indexOf(t,a),w=u+v,x=1,k=[];for(-1!==b&&(y=Math.min(o(0,b),y),b=e.lastIndexOf(t,a+u),-1!==b&&(y=Math.min(o(0,b),y))),b=-1,s=0;u>s;s++){for(h=0,p=w;p>h;)o(s,a+p)<=y?h=p:w=p,p=Math.floor((w-h)/2+h);for(w=p,_=Math.max(1,a-p+1),f=Math.min(a+p,v)+u,g=new Array(f+2),g[f+1]=(1<<s)-1,l=f;l>=_;l--)if(m=i[e.charAt(l-1)],g[l]=0===s?(1|g[l+1]<<1)&m:(1|g[l+1]<<1)&m|(1|(d[l+1]|d[l])<<1)|d[l+1],g[l]&r&&(x=o(s,l-1),y>=x)){if(y=x,b=l-1,k.push(b),!(b>a))break;_=Math.max(1,2*a-b)}if(o(s+1,a)>y)break;d=g}return{isMatch:b>=0,score:x}},e===!0?{search:s}:s(e)}}(jQuery),t.jstree.defaults.sort=function(t,e){return this.get_text(t)>this.get_text(e)?1:-1},t.jstree.plugins.sort=function(e,n){this.bind=function(){n.bind.call(this),this.element.on("model.jstree",t.proxy(function(t,e){this.sort(e.parent,!0)},this)).on("rename_node.jstree create_node.jstree",t.proxy(function(t,e){this.sort(e.parent||e.node.parent,!1),this.redraw_node(e.parent||e.node.parent,!0)},this)).on("move_node.jstree copy_node.jstree",t.proxy(function(t,e){this.sort(e.parent,!1),this.redraw_node(e.parent,!0)},this))},this.sort=function(e,n){var r,i;if(e=this.get_node(e),e&&e.children&&e.children.length&&(e.children.sort(t.proxy(this.settings.sort,this)),n))for(r=0,i=e.children_d.length;i>r;r++)this.sort(e.children_d[r],!1)}};var d=!1;t.jstree.defaults.state={key:"jstree",events:"changed.jstree open_node.jstree close_node.jstree",ttl:!1,filter:!1},t.jstree.plugins.state=function(e,n){this.bind=function(){n.bind.call(this);var e=t.proxy(function(){this.element.on(this.settings.state.events,t.proxy(function(){d&&clearTimeout(d),d=setTimeout(t.proxy(function(){this.save_state()},this),100)},this))},this);this.element.on("ready.jstree",t.proxy(function(){this.element.one("restore_state.jstree",e),this.restore_state()||e()},this))},this.save_state=function(){var e={state:this.get_state(),ttl:this.settings.state.ttl,sec:+new Date};t.vakata.storage.set(this.settings.state.key,JSON.stringify(e))},this.restore_state=function(){var e=t.vakata.storage.get(this.settings.state.key);if(e)try{e=JSON.parse(e)}catch(n){return!1}return e&&e.ttl&&e.sec&&+new Date-e.sec>e.ttl?!1:(e&&e.state&&(e=e.state),e&&t.isFunction(this.settings.state.filter)&&(e=this.settings.state.filter.call(this,e)),e?(this.element.one("set_state.jstree",function(n,r){r.instance.trigger("restore_state",{state:t.extend(!0,{},e)})}),this.set_state(e),!0):!1)},this.clear_state=function(){return t.vakata.storage.del(this.settings.state.key)}},function(t){t.vakata.storage={set:function(t,e){return window.localStorage.setItem(t,e)},get:function(t){return window.localStorage.getItem(t)},del:function(t){return window.localStorage.removeItem(t)}}}(jQuery),t.jstree.defaults.types={"#":{},"default":{}},t.jstree.plugins.types=function(n,r){this.init=function(t,n){var i,o;if(n&&n.types&&n.types["default"])for(i in n.types)if("default"!==i&&"#"!==i&&n.types.hasOwnProperty(i))for(o in n.types["default"])n.types["default"].hasOwnProperty(o)&&n.types[i][o]===e&&(n.types[i][o]=n.types["default"][o]);r.init.call(this,t,n),this._model.data["#"].type="#"},this.bind=function(){r.bind.call(this),this.element.on("model.jstree",t.proxy(function(t,n){var r,i,o=this._model.data,s=n.nodes,a=this.settings.types,l="default";for(r=0,i=s.length;i>r;r++)l="default",o[s[r]].original&&o[s[r]].original.type&&a[o[s[r]].original.type]&&(l=o[s[r]].original.type),o[s[r]].data&&o[s[r]].data.jstree&&o[s[r]].data.jstree.type&&a[o[s[r]].data.jstree.type]&&(l=o[s[r]].data.jstree.type),o[s[r]].type=l,o[s[r]].icon===!0&&a[l].icon!==e&&(o[s[r]].icon=a[l].icon)
            },this))},this.get_json=function(e,n,i){var o,s,a=this._model.data,l=n?t.extend(!0,{},n,{no_id:!1}):{},c=r.get_json.call(this,e,l,i);if(c===!1)return!1;if(t.isArray(c))for(o=0,s=c.length;s>o;o++)c[o].type=c[o].id&&a[c[o].id]&&a[c[o].id].type?a[c[o].id].type:"default",n&&n.no_id&&(delete c[o].id,c[o].li_attr&&c[o].li_attr.id&&delete c[o].li_attr.id);else c.type=c.id&&a[c.id]&&a[c.id].type?a[c.id].type:"default",n&&n.no_id&&(c=this._delete_ids(c));return c},this._delete_ids=function(e){if(t.isArray(e)){for(var n=0,r=e.length;r>n;n++)e[n]=this._delete_ids(e[n]);return e}return delete e.id,e.li_attr&&e.li_attr.id&&delete e.li_attr.id,e.children&&t.isArray(e.children)&&(e.children=this._delete_ids(e.children)),e},this.check=function(n,i,o,s){if(r.check.call(this,n,i,o,s)===!1)return!1;i=i&&i.id?i:this.get_node(i),o=o&&o.id?o:this.get_node(o);var a,l,c,u,h=i&&i.id?t.jstree.reference(i.id):null;switch(h=h&&h._model&&h._model.data?h._model.data:null,n){case"create_node":case"move_node":case"copy_node":if("move_node"!==n||-1===t.inArray(i.id,o.children)){if(a=this.get_rules(o),a.max_children!==e&&-1!==a.max_children&&a.max_children===o.children.length)return this._data.core.last_error={error:"check",plugin:"types",id:"types_01",reason:"max_children prevents function: "+n,data:JSON.stringify({chk:n,pos:s,obj:i&&i.id?i.id:!1,par:o&&o.id?o.id:!1})},!1;if(a.valid_children!==e&&-1!==a.valid_children&&-1===t.inArray(i.type,a.valid_children))return this._data.core.last_error={error:"check",plugin:"types",id:"types_02",reason:"valid_children prevents function: "+n,data:JSON.stringify({chk:n,pos:s,obj:i&&i.id?i.id:!1,par:o&&o.id?o.id:!1})},!1;if(h&&i.children_d&&i.parents){for(l=0,c=0,u=i.children_d.length;u>c;c++)l=Math.max(l,h[i.children_d[c]].parents.length);l=l-i.parents.length+1}(0>=l||l===e)&&(l=1);do{if(a.max_depth!==e&&-1!==a.max_depth&&a.max_depth<l)return this._data.core.last_error={error:"check",plugin:"types",id:"types_03",reason:"max_depth prevents function: "+n,data:JSON.stringify({chk:n,pos:s,obj:i&&i.id?i.id:!1,par:o&&o.id?o.id:!1})},!1;o=this.get_node(o.parent),a=this.get_rules(o),l++}while(o)}}return!0},this.get_rules=function(t){if(t=this.get_node(t),!t)return!1;var n=this.get_type(t,!0);return n.max_depth===e&&(n.max_depth=-1),n.max_children===e&&(n.max_children=-1),n.valid_children===e&&(n.valid_children=-1),n},this.get_type=function(e,n){return e=this.get_node(e),e?n?t.extend({type:e.type},this.settings.types[e.type]):e.type:!1},this.set_type=function(n,r){var i,o,s,a,l;if(t.isArray(n)){for(n=n.slice(),o=0,s=n.length;s>o;o++)this.set_type(n[o],r);return!0}return i=this.settings.types,n=this.get_node(n),i[r]&&n?(a=n.type,l=this.get_icon(n),n.type=r,(l===!0||i[a]&&i[a].icon&&l===i[a].icon)&&this.set_icon(n,i[r].icon!==e?i[r].icon:!0),!0):!1}},t.jstree.plugins.unique=function(e,n){this.check=function(e,r,i,o){if(n.check.call(this,e,r,i,o)===!1)return!1;if(r=r&&r.id?r:this.get_node(r),i=i&&i.id?i:this.get_node(i),!i||!i.children)return!0;var s,a,l="rename_node"===e?o:r.text,c=[],u=this._model.data;for(s=0,a=i.children.length;a>s;s++)c.push(u[i.children[s]].text);switch(e){case"delete_node":return!0;case"rename_node":case"copy_node":return s=-1===t.inArray(l,c),s||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_01",reason:"Child with name "+l+" already exists. Preventing: "+e,data:JSON.stringify({chk:e,pos:o,obj:r&&r.id?r.id:!1,par:i&&i.id?i.id:!1})}),s;case"move_node":return s=r.parent===i.id||-1===t.inArray(l,c),s||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_01",reason:"Child with name "+l+" already exists. Preventing: "+e,data:JSON.stringify({chk:e,pos:o,obj:r&&r.id?r.id:!1,par:i&&i.id?i.id:!1})}),s}return!0}};var _=document.createElement("DIV");_.setAttribute("unselectable","on"),_.className="jstree-wholerow",_.innerHTML="&#160;",t.jstree.plugins.wholerow=function(e,n){this.bind=function(){n.bind.call(this),this.element.on("loading",t.proxy(function(){_.style.height=this._data.core.li_height+"px"},this)).on("ready.jstree set_state.jstree",t.proxy(function(){this.hide_dots()},this)).on("ready.jstree",t.proxy(function(){this.get_container_ul().addClass("jstree-wholerow-ul")},this)).on("deselect_all.jstree",t.proxy(function(){this.element.find(".jstree-wholerow-clicked").removeClass("jstree-wholerow-clicked")},this)).on("changed.jstree",t.proxy(function(t,e){this.element.find(".jstree-wholerow-clicked").removeClass("jstree-wholerow-clicked");var n,r,i=!1;for(n=0,r=e.selected.length;r>n;n++)i=this.get_node(e.selected[n],!0),i&&i.length&&i.children(".jstree-wholerow").addClass("jstree-wholerow-clicked")},this)).on("open_node.jstree",t.proxy(function(t,e){this.get_node(e.node,!0).find(".jstree-clicked").parent().children(".jstree-wholerow").addClass("jstree-wholerow-clicked")},this)).on("hover_node.jstree dehover_node.jstree",t.proxy(function(t,e){this.get_node(e.node,!0).children(".jstree-wholerow")["hover_node"===t.type?"addClass":"removeClass"]("jstree-wholerow-hovered")},this)).on("contextmenu.jstree",".jstree-wholerow",t.proxy(function(e){e.preventDefault(),t(e.currentTarget).closest("li").children("a:eq(0)").trigger("contextmenu",e)},this)).on("click.jstree",".jstree-wholerow",function(e){e.stopImmediatePropagation();var n=t.Event("click",{metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey});t(e.currentTarget).closest("li").children("a:eq(0)").trigger(n).focus()}).on("click.jstree",".jstree-leaf > .jstree-ocl",t.proxy(function(e){e.stopImmediatePropagation();var n=t.Event("click",{metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey});t(e.currentTarget).closest("li").children("a:eq(0)").trigger(n).focus()},this)).on("mouseover.jstree",".jstree-wholerow, .jstree-icon",t.proxy(function(t){return t.stopImmediatePropagation(),this.hover_node(t.currentTarget),!1},this)).on("mouseleave.jstree",".jstree-node",t.proxy(function(t){this.dehover_node(t.currentTarget)},this))},this.teardown=function(){this.settings.wholerow&&this.element.find(".jstree-wholerow").remove(),n.teardown.call(this)},this.redraw_node=function(e,r,i){if(e=n.redraw_node.call(this,e,r,i)){var o=_.cloneNode(!0);-1!==t.inArray(e.id,this._data.core.selected)&&(o.className+=" jstree-wholerow-clicked"),e.insertBefore(o,e.childNodes[0])}return e}}}}),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},r={}.hasOwnProperty,i=function(t,e){function n(){this.constructor=t}for(var i in e)r.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};n("util/object_explorer",["underscore","jquery","jstree","common/continuum_view","common/has_properties"],function(n,o,s,a,l){var c,u;return c=function(s){function a(){return this.createContextMenu=t(this.createContextMenu,this),this.onEvent=t(this.onEvent,this),u=a.__super__.constructor.apply(this,arguments)}return i(a,s),a.prototype.initialize=function(t){return a.__super__.initialize.call(this,t),this.onEvent=n.debounce(this.onEvent,t.debounce||200),this.showToolbar=t.showToolbar||!1,this.arrayLimit=t.arrayLimit||100,this.render()},a.prototype.base=function(){return null==this._base&&(this._base=e("common/base")),this._base},a.prototype.delegateEvents=function(t){var e,r,i,o,s;for(a.__super__.delegateEvents.call(this,t),o=n.keys(this.base().locations),s=[],r=0,i=o.length;i>r;r++)e=o[r],s.push(this.base().Collections(e).on("all",this.onEvent));return s},a.prototype.onEvent=function(){return this.reRender()},a.prototype.createTree=function(t){var e,r,i,o,s,a,l;if(null==t&&(t=!0),i=function(){var t,r,i,s,a=this;for(i=n.keys(this.base().locations),s=[],t=0,r=i.length;r>t;t++)o=i[t],e=this.base().Collections(o).map(function(t,e){var n;return n={},n[t.id]=1,a.descend(e,t,n)}),s.push(this.node(o,"collection",e));return s}.call(this),t){for(l=[],s=0,a=i.length;a>s;s++)r=i[s],r.children.length>0&&l.push(r);return l}return i},a.prototype.descend=function(t,e,i){var o,s,a,c,u,h,p,d,_,f,g,m;return this.isRef(e)&&(d=!0,null==i[e.id]?e=this.base().Collections(e.type).get(e.id):console.log("Cyclic reference to "+e.type+":"+e.id)),e instanceof l?(i=n.clone(i),i[e.id]=1,a=function(){var t,n;t=e.attributes,n=[];for(s in t)r.call(t,s)&&(g=t[s],this.isAttr(s)&&n.push(this.descend(s,g,i)));return n}.call(this),f=e.type,g=null,c=null):n.isArray(e)?(_=e.length>this.arrayLimit,o=this.arrayLimit||e.length,a=function(){var t,n,r,o;for(r=e.slice(0,+this.arrayLimit+1||9e9),o=[],h=t=0,n=r.length;n>t;h=++t)g=r[h],o.push(this.descend(h,g,i));return o}.call(this),f="Array["+e.length+"]"+(_?" (showing first "+this.arrayLimit+" items)":""),g=null,c=null):n.isObject(e)?(a=function(){var t;t=[];for(p in e)r.call(e,p)&&(g=e[p],t.push(this.descend(p,g,i)));return t}.call(this),f="Object["+n.keys(e).length+"]",g=null,c=null):(a=[],m=n.isUndefined(e)?[null,null,"orchid"]:n.isNull(e)?[null,null,"teal"]:n.isBoolean(e)?["Boolean",null,"darkmagenta"]:n.isNumber(e)?["Number",null,"green"]:n.isString(e)?["String",'"'+e+'"',"firebrick"]:n.isFunction(e)?["Function",null,null]:n.isDate(e)?["Date",null,null]:n.isRegExp(e)?["RegExp",null,null]:n.isElement(e)?["Element",null,null]:[typeof e,null,null],f=m[0],g=m[1],c=m[2],null==g&&(g=""+e),null==c&&(c="black")),u=['<span style="color:gray">'+t+"</span>"],null!=f&&(u=u.concat([": ",'<span style="color:blue">'+f+(d?'<span style="color:red">*</span>':"")+"</span>"])),null!=g&&(u=u.concat([" = ",'<span style="color:'+c+'">'+g+"</span>"])),this.node(u.join(""),"",a)},a.prototype.isRef=function(t){return n.isObject(t)&&(n.isEqual(n.keys(t),["id","type"])||n.isEqual(n.keys(t),["type","id"]))},a.prototype.isAttr=function(t){return t.length>0&&"_"!==t[0]},a.prototype.node=function(t,e,n,r){return{text:t,type:e,children:n||[],state:{open:r||!1}}},a.prototype.renderToolbar=function(){var t,e,n=this;return e=o('<div class="btn-group"></div>'),t=o('<button type="button" class="btn btn-default">Refresh</button>'),t.click(function(){return n.reRender()}),e.append(t),this.showToolbar||e.hide(),e},a.prototype.themeUrl=function(){return null},a.prototype.createContextMenu=function(t){var e,n;return e=t.original,n={},"collection"!==e.type&&(n.remove={label:"Remove"}),n},a.prototype.renderTree=function(){return o("<div/>").jstree({core:{data:this.createTree(),themes:{url:this.themeUrl()}},contextmenu:{items:this.createContextMenu},plugins:["contextmenu"]})},a.prototype.render=function(){return this.$toolbar=this.renderToolbar(),this.$tree=this.renderTree(),this.$el.append([this.$toolbar,this.$tree])},a.prototype.reRender=function(){return this.$tree.jstree("destroy"),this.$el.empty(),this.render()},a}(a.View),{View:c}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("tool/object_explorer_tool",["underscore","jquery","modal","backbone","./tool","./event_generators","util/object_explorer"],function(t,n,r,i,o,s,a){var l,c,u,h,p,d,_;return l=s.ButtonEventGenerator,u=function(t){function r(){return p=r.__super__.constructor.apply(this,arguments)}return e(r,t),r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t)},r.prototype.eventGeneratorClass=l,r.prototype.evgen_options={buttonText:"Object Explorer"},r.prototype.toolType="ObjectExplorerTool",r.prototype.tool_events={activated:"_activated",deactivated:"_close_modal"},r.prototype._activated=function(){var t,e=this;return t=n('<div id=\'objectExplorerModal\' class=\'bokeh\'>\n  <div class="modal" role="dialog" aria-labelledby="objectExplorerLabel" aria-hidden="true">\n    <div class="modal-header">\n      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>\n      <h3 id="dataConfirmLabel">Object Explorer</h3>\n    </div>\n    <div class="modal-body">\n    </div>\n    <div class="modal-footer">\n      <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>\n    </div>\n  </div>\n</div>'),this.$object_explorer_view=new a.View({el:t.find(".modal-body")}),n("body").append(t),n("#objectExplorerModal .modal").on("hidden",function(){return e.plot_view.eventSink.trigger("clear_active_tool")}),n("#objectExplorerModal > .modal").modal({show:!0})},r.prototype._close_modal=function(){return n("#objectExplorerModal").remove(),n("#objectExplorerModal > .modal").remove()},r}(o.View),c=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=u,n.prototype.type="ObjectExplorerTool",n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(o.Model),h=function(t){function n(){return _=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=c,n}(i.Collection),{Model:c,Collection:new h,View:u}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("widget/data_slider",["common/plot_widget","common/has_parent"],function(n,r){var i,o,s,a,l,c;return o=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.attributes={"class":"dataslider pull-left"},r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.render_init(),this.select=_.throttle(this._select,50)},r.prototype.delegateEvents=function(t){return r.__super__.delegateEvents.call(this,t),"pass"},r.prototype.label=function(t,e){return this.$(".minlabel").text(t),this.$(".maxlabel").text(e)},r.prototype.render_init=function(){var t,e,n,r,i=this;return this.$el.html(""),this.$el.append("<div class='maxlabel'></div>"),this.$el.append("<div class='slider'></div>"),this.$el.append("<div class='minlabel'></div>"),this.plot_view.$(".plotarea").append(this.$el),t=this.mget_obj("data_source").getcolumn(this.mget("field")),r=[_.min(t),_.max(t)],n=r[0],e=r[1],this.$el.find(".slider").slider({orientation:"vertical",animate:"fast",step:(e-n)/50,min:n,max:e,values:[n,e],slide:function(t,e){return i.set_selection_range(t,e),i.select(t,e)}}),this.label(n,e),this.$el.find(".slider").height(this.plot_view.view_state.get("inner_height"))},r.prototype.set_selection_range=function(t,e){var n,r,i,o;return o=_.min(e.values),i=_.max(e.values),this.label(o,i),n=this.mget_obj("data_source"),r=this.mget("field"),null==n.range_selections&&(n.range_selections={}),n.range_selections[r]=[o,i]},r.prototype._select=function(){var e,n,r,i,o,s,a,l,c,u,h,p,d,_;r=this.mget_obj("data_source"),n={},a=0,d=r.range_selections;for(e in d)t.call(d,e)&&(h=d[e],n[e]=r.getcolumn(e),a=n[e].length);for(c=[],i=p=0;a>=0?a>p:p>a;i=a>=0?++p:--p){l=!0,_=r.range_selections;for(e in _)if(t.call(_,e)&&(h=_[e],s=h[0],o=h[1],u=n[e][i],s>u||u>o)){l=!1;break}l&&c.push(i)}return r.save({selected:c},{patch:!0})},r}(n),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type="DataSlider",n.prototype.default_view=o,n.prototype.defaults=function(){return{data_source:null,field:null}},n.prototype.display_defaults=function(){return{level:"tool"}},n}(r),s=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(Backbone.Collection),{Model:i,Collection:new s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("widget/pandas/ipython_remote_data",["backbone","common/has_properties"],function(t,n){var r,i,o,s;return r=function(t){function n(){return o=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type="IPythonRemoteData",n.prototype.defaults={computed_columns:[]},n}(n),i=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(t.Collection),{Model:r,Collection:new i}})}.call(this),n("widget/pandas/pandas_pivot_template",[],function(){var t=function(t){var e=function(t){"undefined"==typeof t&&null==t&&(t="");var e=new String(t);return e.ecoSafe=!0,e};return function(){var t=[],n=this,r=function(e){"undefined"!=typeof e&&null!=e&&t.push(e.ecoSafe?e:n.escape(e))};return function(){var t,n,i,o,s,a,l,c,u,h,p,d,f,g,m;if(r(e('<form class="form-inline tablecontrolform">\n<label>Transform </label>:  <select class="tablecontrolstate">\n    <option value="groupby" selected="selected">Group By</option>\n    <option value="filtering">Filtering</option>\n    <option value="computed">Computed Columns</option>\n  </select>\n  <br/>\n  ')),"groupby"===this.tablecontrolstate&&(r(e('\n  <label>GroupBy </label>\n  <input type="text" class="pandasgroup" value="')),r(this.group),r(e('"/>\n  <label>Aggregation</label>\n  <select class="pandasagg">\n    <option value="sum">sum</option>\n    <option value="mean">mean</option>\n    <option value="std">std</option>\n    <option value="max">max</option>\n    <option value="min">min</option>\n  </select>\n  '))),r(e("\n  ")),"filtering"===this.tablecontrolstate&&(r(e('\n  <label class="checkbox" >\n    ')),this.filterselected?r(e('\n    <input type="checkbox" class="filterselected" checked="checked"/>\n    ')):r(e('\n    <input type="checkbox" class="filterselected"/>\n    ')),r(e('\n    Filter Selection\n  </label>\n  <input type="button" class="clearselected btn btn-mini" value="Clear Selection"/>\n  <label>\n    Search\n  </label>\n  <input type="text" class="search input-large"/>\n  '))),r(e("\n  \n  ")),"computed"===this.tablecontrolstate){for(r(e('\n  <table class="table">\n    <thead>\n      <th>\n        Name\n      </th>\n      <th>\n        Value\n      </th>\n      <th>\n      </th>\n    </thead>\n    ')),d=this.computed_columns,o=0,c=d.length;c>o;o++)n=d[o],r(e("\n    <tr>\n      <td>\n        ")),r(n.name),r(e("\n      </td>\n      <td>\n        ")),r(n.code),r(e('\n      </td>\n      <td>\n        <a class="column_del" \n           name="')),r(n.name),r(e('" href="#">[delete]</a>\n      </td>\n    </tr>\n    '));r(e('\n    <tr>\n      <td>\n        <input type="text" class="computedname input-mini"/>\n      </td>\n      <td>\n        <input type="text" class="computedtxtbox input-medium"/>\n      </td>\n      <td>\n      </td>\n    </tr>\n  </table>\n  '))}for(r(e('\n  \n</form>\n\n<table class="bokehdatatable table table-bordered"\n')),this.width?(r(e('\n       style="max-height:')),r(this.height),r(e("px;max-width:")),r(this.width),r(e('px"\n'))):(r(e('\n       style="max-height:')),r(this.height),r(e('px"\n'))),r(e("\n       >\n  <thead>\n    ")),this.counts&&r(e("\n    <th>counts</th>\n    ")),r(e("\n    <th>index</th>\n    ")),f=this.columns,s=0,u=f.length;u>s;s++)t=f[s],r(e("\n    ")),this.skip[t]||(r(e('\n    <th><a class="pandascolumn">')),r(t),r(e("</a>\n      \n      ")),this.sort_ascendings[t]===!0?r(e('\n      <i class="icon-caret-up"></i>\n      ')):this.sort_ascendings[t]===!1&&r(e('\n      <i class="icon-caret-down"></i>\n      ')),r(e("\n      \n      "))),r(e("\n    </th>\n    "));for(r(e("\n  </thead>\n  ")),g=_.range(this.length),a=0,h=g.length;h>a;a++){for(i=g[a],r(e('\n  <tr class="pandasrow" rownum="')),r(i),r(e('">\n    ')),this.selected&&this.selected[i]?(r(e('\n      <td style="background-color:')),r(this.colors[i]),r(e('"> \n        ')),r(this.selected[i]),r(e("/")),r(this.counts[i]),r(e("\n      </td>      \n    "))):(r(e("\n      <td> ")),r(this.counts[i]),r(e(" </td>\n    "))),r(e("\n    <td> ")),r(this.index[i]),r(e(" </td>\n    ")),m=this.columns,l=0,p=m.length;p>l;l++)t=m[l],r(e("\n      ")),this.skip[t]||(r(e("    \n      <td> ")),r(this.data[t][i]),r(e(" </td>\n      "))),r(e("\n    "));r(e("\n  </tr>\n  "))}r(e('\n</table>\n<form>\n  <center>\n    <div class="btn-group pagination">\n      <button class="btn btn-mini">First</button>\n      <button class="btn btn-mini">Previous</button>\n      <button class="btn btn-mini">Next</button>\n      <button class="btn btn-mini">Last</button>  \n    </div>\n    <div class="paginatedisplay">\n      Show <input type="text" class="pandassize" value="')),r(this.length),r(e('"> records\n      From <input type="text" class="pandasoffset" value="')),r(this.offset),r(e('">\n      to ')),r(this.length+this.offset),r(e(" - \n      Total : ")),r(this.totallength),r(e("\n    </div>\n  </center>\n</form>\n"))}.call(this),t.join("")}.call(function(){var n,r={escape:function(t){return(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},safe:e};for(n in t)r[n]=t[n];return r}())};return t}),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,r=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t};n("widget/pandas/pandas_pivot_table",["underscore","backbone","common/has_parent","common/continuum_view","./pandas_pivot_template"],function(e,n,i,o,s){var a,l,c,u,h,p,d;return a=13,u=function(n){function i(){return this.colors=t(this.colors,this),this.pandasend=t(this.pandasend,this),this.pandasnext=t(this.pandasnext,this),this.pandasback=t(this.pandasback,this),this.pandasbeginning=t(this.pandasbeginning,this),this.toggle_more_controls=t(this.toggle_more_controls,this),this.sort=t(this.sort,this),this.rowclick=t(this.rowclick,this),this.toggle_filterselected=t(this.toggle_filterselected,this),this.clearselected=t(this.clearselected,this),this.computedtxtbox=t(this.computedtxtbox,this),this.column_del=t(this.column_del,this),this.search=t(this.search,this),h=i.__super__.constructor.apply(this,arguments)}return r(i,n),i.prototype.template=s,i.prototype.initialize=function(t){return i.__super__.initialize.call(this,t),this.listenTo(this.model,"destroy",this.remove),this.listenTo(this.model,"change",this.render),this.render()},i.prototype.events={"keyup .pandasgroup":"pandasgroup","keyup .pandasoffset":"pandasoffset","keyup .pandassize":"pandassize","change .pandasagg":"pandasagg","change .tablecontrolstate":"tablecontrolstate","click .pandasbeginning":"pandasbeginning","click .pandasback":"pandasback","click .pandasnext":"pandasnext","click .pandasend":"pandasend","click .controlsmore":"toggle_more_controls","click .pandascolumn":"sort","click .pandasrow":"rowclick","click .filterselected":"toggle_filterselected","click .clearselected":"clearselected","keyup .computedtxtbox":"computedtxtbox","click .column_del":"column_del","keyup .search":"search"},i.prototype.search=function(t){var e,n;return t.keyCode===a?(e=$(t.currentTarget).val(),n=this.model.get_obj("source"),n.rpc("search",[e]),t.preventDefault()):void 0},i.prototype.column_del=function(t){var n,r,i,o;return o=this.model.get_obj("source"),i=o.get("computed_columns"),r=$(t.currentTarget).attr("name"),n=e.filter(i,function(t){return t.name!==r}),o.rpc("set_computed_columns",[n])},i.prototype.computedtxtbox=function(t){var e,n,r,i;return t.keyCode===a?(n=this.$(".computedname").val(),e=this.$(".computedtxtbox").val(),i=this.model.get_obj("source"),r=i.get("computed_columns"),r.push({name:n,code:e}),i.rpc("set_computed_columns",[r]),t.preventDefault()):void 0},i.prototype.clearselected=function(){return this.model.rpc("setselect",[[]])},i.prototype.toggle_filterselected=function(){var t;return t=this.$(".filterselected").is(":checked"),this.mset("filterselected",t),this.model.save()},i.prototype.rowclick=function(t){var n,r,i,o,s,a,l,c,u,h;return r=this.counts(),h=this.selected(),a=function(){var t,i,o,s,a;for(o=e.zip(h,r),a=[],t=0,i=o.length;i>t;t++)s=o[t],u=s[0],n=s[1],a.push(u/n);return a}(),h=function(){var t,e,n;for(n=[],i=t=0,e=a.length;e>t;i=++t)s=a[i],s>.5&&n.push(i);return n}(),c=Number($(t.currentTarget).attr("rownum")),o=h.indexOf(c),l=-1===o?this.model.rpc("select",[[c]]):this.model.rpc("deselect",[[c]]),null},i.prototype.sort=function(t){var e;return e=$(t.currentTarget).text(),this.model.toggle_column_sort(e)},i.prototype.toggle_more_controls=function(){return this.controls_hide=this.controls_hide?!1:!0,this.render()},i.prototype.pandasbeginning=function(){return this.model.go_beginning()},i.prototype.pandasback=function(){return this.model.go_back()},i.prototype.pandasnext=function(){return this.model.go_forward()},i.prototype.pandasend=function(){return this.model.go_end()},i.prototype.pandasoffset=function(t){var n;return t.keyCode===a?(n=this.$el.find(".pandasoffset").val(),n=Number(n),e.isNaN(n)&&(n=this.model.defaults.offset),this.model.save("offset",n,{wait:!0}),t.preventDefault()):void 0},i.prototype.pandassize=function(t){var n,r;return t.keyCode===a?(r=this.$el.find(".pandassize").val(),n=Number(r),(e.isNaN(n)||""===r)&&(n=this.model.defaults.length),n+this.mget("offset")>this.mget("maxlength")&&(n=this.mget("maxlength")-this.mget("offset")),this.model.save("length",n,{wait:!0}),t.preventDefault()):void 0},i.prototype.tablecontrolstate=function(){return this.mset("tablecontrolstate",this.$(".tablecontrolstate").val())},i.prototype.pandasagg=function(){return this.model.save("agg",this.$el.find(".pandasagg").val(),{wait:!0})},i.prototype.fromcsv=function(t){return t?e.map(t.split(","),function(t){return t.trim()}):[]},i.prototype.pandasgroup=function(t){return t.keyCode===a?(this.model.set({group:this.fromcsv(this.$el.find(".pandasgroup").val()),offset:0}),this.model.save(),t.preventDefault(),!1):void 0},i.prototype.counts=function(){return this.mget("tabledata").data._counts},i.prototype.selected=function(){return this.mget("tabledata").data._selected},i.prototype.colors=function(){var t,n;return t=this.counts(),n=this.selected(),t&&n?e.map(e.zip(t,n),function(t){var e,r;return r=t[0],n=t[1],e=.3*n/r,"rgba(0,0,255,"+e+")"}):null},i.prototype.render=function(){var t,n,r,i,o,s,a,l,c,u,h;for(n=this.mget("group"),e.isArray(n)&&(n=n.join(",")),o=this.mget("sort"),e.isArray(o)&&(o=o.join(",")),t=this.colors(),s={},h=this.mget("sort"),c=0,u=h.length;u>c;c++)i=h[c],s[i.column]=i.ascending;return a=this.mget_obj("source"),l={skip:{_counts:!0,_selected:!0,index:!0},tablecontrolstate:this.mget("tablecontrolstate"),computed_columns:this.mget_obj("source").get("computed_columns"),columns:this.mget("tabledata").column_names,data:this.mget("tabledata").data,group:n,sort_ascendings:s,height:this.mget("height"),width:this.mget("width"),offset:this.mget("offset"),length:this.model.length(),filterselected:this.mget("filterselected"),totallength:this.mget("totallength"),counts:this.mget("tabledata").data._counts,selected:this.mget("tabledata").data._selected,controls_hide:this.controls_hide,colors:t,index:this.mget("tabledata").data.index},this.$el.empty(),r=this.template(l),this.$el.html(r),this.$(".pandasagg").find('option[value="'+this.mget("agg")+'"]').attr("selected","selected"),this.$(".tablecontrolstate").find('option[value="'+this.mget("tablecontrolstate")+'"]').attr("selected","selected"),this.$el.addClass("bokehtable")},i}(o.View),l=function(n){function i(){return this.toggle_column_sort=t(this.toggle_column_sort,this),this.dinitialize=t(this.dinitialize,this),p=i.__super__.constructor.apply(this,arguments)}return r(i,n),i.prototype.type="PandasPivotTable",i.prototype.initialize=function(t,n){var r=this;return i.__super__.initialize.call(this,t,n),this.throttled_fetch=e.throttle(function(){return r.fetch()},500)},i.prototype.dinitialize=function(t,e){return i.__super__.dinitialize.call(this,t,e)},i.prototype.fetch=function(t){return i.__super__.fetch.call(this,t)},i.prototype.length=function(){return e.values(this.get("tabledata").data)[0].length},i.prototype.toggle_column_sort=function(t){var n,r;return r=this.get("sort"),this.unset("sort",{silent:!0}),n=e.filter(r,function(e){return e.column===t}),n.length>0?(n=n[0],n.ascending?(n.ascending=!1,this.save("sort",r,{wait:!0})):(r=e.filter(r,function(e){return e.column!==t}),this.save("sort",r,{wait:!0})),void 0):(r=e.clone(r),r.push({column:t,ascending:!0}),this.save("sort",r,{wait:!0}),void 0)},i.prototype.go_beginning=function(){return this.set("offset",0),this.save()},i.prototype.go_back=function(){var t;return t=this.get("offset"),t-=this.length(),0>t&&(t=0),this.set("offset",t),this.save()},i.prototype.go_forward=function(){var t,e;return e=this.get("offset"),e+=this.length(),t=this.get("maxlength")-this.length(),e>t&&(e=t),this.set("offset",e),this.save()},i.prototype.go_end=function(){var t;return t=this.get("maxlength")-this.length(),this.set("offset",t),this.save()},i.prototype.default_view=u,i.prototype.defaults=function(){return{sort:[],group:[],agg:"sum",offset:0,length:100,maxlength:1e3,tabledata:null,columns_names:[],width:null,tablecontrolstate:"groupby"}},i}(i),c=function(t){function e(){return d=e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.model=l,e}(n.Collection),{Model:l,Collection:new c,View:u}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("widget/pandas/pandas_plot_source",["backbone","source/column_data_source"],function(t,n){var r,i,o,s;return r=function(t){function n(){return o=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type="PandasPlotSource",n}(n.Model),i=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(t.Collection),{Model:r,Collection:new i}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("widget/paragraph",["common/has_parent","common/continuum_view","backbone"],function(t,n,r){var i,o,s,a,l,c,u,h;return i=n.View,s=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.tagName="p",n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},n.prototype.render=function(){return this.$el.text(this.mget("text"))},n}(i),o=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type="Paragraph",n.prototype.default_view=s,n.prototype.defaults=function(){return{text:""}},n}(t),a=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(r.Collection),l=new a,{Model:o,Collection:l,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("widget/hbox",["common/has_parent","common/continuum_view","common/build_views","backbone"],function(n,r,i,o){var s,a,l,c,u,h,p,d;return s=r.View,l=function(n){function r(){return h=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.tag="div",r.prototype.attributes={"class":"bk-hbox"},r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.views={},this.render(),this.listenTo(this.model,"change",this.render)},r.prototype.render=function(){var e,n,r,o,s,a,l,c;n=this.mget_obj("children"),i(this.views,n),l=this.views;for(r in l)t.call(l,r)&&(o=l[r],o.$el.detach());for(this.$el.empty(),c=[],s=0,a=n.length;a>s;s++)e=n[s],c.push(this.$el.append(this.views[e.id].$el));return c},r}(s),a=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type="HBox",n.prototype.default_view=l,n.prototype.defaults=function(){return{children:[]}},n}(n),c=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(o.Collection),u=new c,{Model:a,Collection:u,View:l}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e
            }for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("widget/vbox",["common/has_parent","common/continuum_view","common/build_views","backbone"],function(n,r,i,o){var s,a,l,c,u,h,p,d;return s=r.View,l=function(n){function r(){return h=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.tag="div",r.prototype.attributes={"class":"bk-vbox"},r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.views={},this.render(),this.listenTo(this.model,"change",this.render)},r.prototype.render=function(){var e,n,r,o,s,a,l,c;n=this.mget_obj("children"),i(this.views,n),l=this.views;for(r in l)t.call(l,r)&&(o=l[r],o.$el.detach());for(this.$el.empty(),c=[],s=0,a=n.length;a>s;s++)e=n[s],c.push(this.$el.append(this.views[e.id].$el));return c},r}(s),a=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type="VBox",n.prototype.default_view=l,n.prototype.defaults=function(){return{children:[]}},n}(n),c=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(o.Collection),u=new c,{Model:a,Collection:u,View:l}})}.call(this),n("widget/textinputtemplate",[],function(){var t=function(t){var e=function(t){"undefined"==typeof t&&null==t&&(t="");var e=new String(t);return e.ecoSafe=!0,e};return function(){var t=[],n=this,r=function(e){"undefined"!=typeof e&&null!=e&&t.push(e.ecoSafe?e:n.escape(e))};return function(){r(e('<label for="')),r(this.id),r(e('"> ')),r(this.title),r(e(' </label>\n<input class="bk-widget-form-input" type="text" id="')),r(this.id),r(e('" name="')),r(this.name),r(e('" value="')),r(this.value),r(e('"/>\n'))}.call(this),t.join("")}.call(function(){var n,r={escape:function(t){return(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},safe:e};for(n in t)r[n]=t[n];return r}())};return t}),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("widget/textinput",["common/has_parent","common/continuum_view","common/build_views","backbone","./textinputtemplate"],function(t,n,r,i,o){var s,a,l,c,u,h,p,d;return s=n.View,l=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.tagName="div",n.prototype.attributes={"class":"bk-widget-form-group"},n.prototype.template=o,n.prototype.events={"change input":"change_input"},n.prototype.change_input=function(){return this.mset("value",this.$("input").val()),console.log("set",this.model.attributes)},n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},n.prototype.render=function(){return this.$el.html(this.template(this.model.attributes)),this},n}(s),a=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type="TextInput",n.prototype.default_view=l,n.prototype.defaults=function(){var t;return t={name:"",value:"",title:""}},n}(t),c=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(i.Collection),u=new c,{Model:a,Collection:u}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("widget/vboxmodelform",["common/has_parent","common/continuum_view","common/build_views","backbone"],function(n,r,i,o){var s,a,l,c,u,h,p,d;return s=r.View,l=function(n){function r(){return h=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.tagName="form",r.prototype.attributes={"class":"bk-widget-form",role:"form"},r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.views={},this.render(),this.listenTo(this.model,"change:children",this.change_children),this.bind_children()},r.prototype.change_children=function(){var t,e,n,r,i;for(n=this.model.previous("children"),r=0,i=n.length;i>r;r++)e=n[r],t=this.resolve_ref(e),t&&this.stopListening(t,"change:value");return this.bind_children()},r.prototype.bind_children=function(){var t,e,n,r,i;for(e=this.mget_obj("_children"),i=[],n=0,r=e.length;r>n;n++)t=e[n],i.push(this.listenTo(t,{"change:value":this.set_data}));return i},r.prototype.set_data=function(t,e){var n,r,i,o,s,a;if(null!=t)o=[t.get("name"),t.get("value")],n=o[0],e=o[1],e=this.model.convert_val(n,e),this.mset(n,e),this.model.save();else{for(s=this.mget_obj("children"),r=0,i=s.length;i>r;r++)t=s[r],a=[t.get("name"),t.get("value")],n=a[0],e=a[1],null!=n&&null!=e&&(e=this.model.convert_val(n,e),this.mset(n,e));this.model.save()}return console.log(this.model.attributes)},r.prototype.render=function(){var e,n,r,o,s,a,l,c;n=this.mget_obj("_children"),i(this.views,n),l=this.views;for(r in l)t.call(l,r)&&(o=l[r],o.$el.detach());for(this.$el.empty(),c=[],s=0,a=n.length;a>s;s++)e=n[s],this.$el.append("<br/"),c.push(this.$el.append(this.views[e.id].$el));return c},r}(s),a=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type="VBoxModelForm",n.prototype.default_view=l,n.prototype.convert_val=function(t,e){var n;return n=this.get("_field_defs"),null!=n[t]&&("Float"===n[t]?e=parseFloat(e):"Int"===n[t]&&(e=parseInt(e))),e},n.prototype.defaults=function(){var t;return t={_children:[],_field_defs:{}}},n}(n),c=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(o.Collection),u=new c,{Model:a,Collection:u,View:l}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("widget/pretext",["backbone","./paragraph"],function(t,n){var r,i,o,s,a,l,c;return i=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.tagName="pre",n}(n.View),r=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type="PreText",n.prototype.default_view=i,n.prototype.defaults=function(){return{text:""}},n}(n.Model),o=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(t.Collection),s=new o,{Model:r,Collection:s,View:i}})}.call(this),n("widget/selecttemplate",[],function(){var t=function(t){var e=function(t){"undefined"==typeof t&&null==t&&(t="");var e=new String(t);return e.ecoSafe=!0,e};return function(){var t=[],n=this,r=function(e){"undefined"!=typeof e&&null!=e&&t.push(e.ecoSafe?e:n.escape(e))};return function(){var t,n,i,o;for(r(e('<label for="')),r(this.id),r(e('"> ')),r(this.title),r(e(' </label>\n<select class="bk-widget-form-input" id="')),r(this.id),r(e('" name="')),r(this.name),r(e('">\n  ')),o=this.options,n=0,i=o.length;i>n;n++)t=o[n],r(e("\n  ")),t.value===this.value?(r(e('\n  <option selected="selected" value="')),r(t.value),r(e('">')),r(t.name),r(e("</option>\n  "))):(r(e('\n  <option value="')),r(t.value),r(e('">')),r(t.name),r(e("</option> \n  "))),r(e("\n\n  "));r(e("\n</select>\n"))}.call(this),t.join("")}.call(function(){var n,r={escape:function(t){return(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},safe:e};for(n in t)r[n]=t[n];return r}())};return t}),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("widget/selectbox",["common/has_parent","common/continuum_view","backbone","underscore","./selecttemplate"],function(t,n,r,i,o){var s,a,l,c,u,h,p,d;return s=n.View,l=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.events={"change select":"change_input"},n.prototype.change_input=function(){return this.mset("value",this.$("select").val()),console.log("set",this.model.attributes)},n.prototype.tagName="div",n.prototype.template=o,n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},n.prototype.render=function(){var t;return this.$el.empty(),t=this.template(this.model.attributes),this.$el.html(t),this},n}(s),a=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type="Select",n.prototype.default_view=l,n.prototype.defaults=function(){var t;return t={title:"",value:"",options:[]}},n}(t),c=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(r.Collection),u=new c,{Model:a,Collection:u,View:l}})}.call(this),n("widget/slidertemplate",[],function(){var t=function(t){var e=function(t){"undefined"==typeof t&&null==t&&(t="");var e=new String(t);return e.ecoSafe=!0,e};return function(){var t=[],n=this,r=function(e){"undefined"!=typeof e&&null!=e&&t.push(e.ecoSafe?e:n.escape(e))};return function(){r(e('<label for="')),r(this.id),r(e('"> ')),r(this.title),r(e(' </label>    \n<div class="bk-slider-')),r(this.orientation),r(e('">\n  <div class="slider " id="')),r(this.id),r(e('">\n</div>\n\n'))}.call(this),t.join("")}.call(function(){var n,r={escape:function(t){return(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},safe:e};for(n in t)r[n]=t[n];return r}())};return t}),n("jquery_ui/core",["jquery"],function(t){!function(t,e){function n(e,n){var i,o,s,a=e.nodeName.toLowerCase();return"area"===a?(i=e.parentNode,o=i.name,e.href&&o&&"map"===i.nodeName.toLowerCase()?(s=t("img[usemap=#"+o+"]")[0],!!s&&r(s)):!1):(/input|select|textarea|button|object/.test(a)?!e.disabled:"a"===a?e.href||n:n)&&r(e)}function r(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length}var i=0,o=/^ui-id-\d+$/;t.ui=t.ui||{},t.ui.version||(t.extend(t.ui,{version:"1.10.0",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({_focus:t.fn.focus,focus:function(e,n){return"number"==typeof e?this.each(function(){var r=this;setTimeout(function(){t(r).focus(),n&&n.call(r)},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var e;return e=t.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.css(this,"position"))&&/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(n){if(n!==e)return this.css("zIndex",n);if(this.length)for(var r,i,o=t(this[0]);o.length&&o[0]!==document;){if(r=o.css("position"),("absolute"===r||"relative"===r||"fixed"===r)&&(i=parseInt(o.css("zIndex"),10),!isNaN(i)&&0!==i))return i;o=o.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++i)})},removeUniqueId:function(){return this.each(function(){o.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(n){return!!t.data(n,e)}}):function(e,n,r){return!!t.data(e,r[3])},focusable:function(e){return n(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var r=t.attr(e,"tabindex"),i=isNaN(r);return(i||r>=0)&&n(e,!i)}}),t("<a>").outerWidth(1).jquery||t.each(["Width","Height"],function(n,r){function i(e,n,r,i){return t.each(o,function(){n-=parseFloat(t.css(e,"padding"+this))||0,r&&(n-=parseFloat(t.css(e,"border"+this+"Width"))||0),i&&(n-=parseFloat(t.css(e,"margin"+this))||0)}),n}var o="Width"===r?["Left","Right"]:["Top","Bottom"],s=r.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+r]=function(n){return n===e?a["inner"+r].call(this):this.each(function(){t(this).css(s,i(this,n)+"px")})},t.fn["outer"+r]=function(e,n){return"number"!=typeof e?a["outer"+r].call(this,e):this.each(function(){t(this).css(s,i(this,e,!0,n)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(n){return arguments.length?e.call(this,t.camelCase(n)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.support.selectstart="onselectstart"in document.createElement("div"),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.extend(t.ui,{plugin:{add:function(e,n,r){var i,o=t.ui[e].prototype;for(i in r)o.plugins[i]=o.plugins[i]||[],o.plugins[i].push([n,r[i]])},call:function(t,e,n){var r,i=t.plugins[e];if(i&&t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType)for(r=0;r<i.length;r++)t.options[i[r][0]]&&i[r][1].apply(t.element,n)}},hasScroll:function(e,n){if("hidden"===t(e).css("overflow"))return!1;var r=n&&"left"===n?"scrollLeft":"scrollTop",i=!1;return e[r]>0?!0:(e[r]=1,i=e[r]>0,e[r]=0,i)}}))}(t)}),n("jquery_ui/widget",["jquery"],function(t){!function(t,e){var n=0,r=Array.prototype.slice,i=t.cleanData;t.cleanData=function(e){for(var n,r=0;null!=(n=e[r]);r++)try{t(n).triggerHandler("remove")}catch(o){}i(e)},t.widget=function(e,n,r){var i,o,s,a,l={},c=e.split(".")[0];e=e.split(".")[1],i=c+"-"+e,r||(r=n,n=t.Widget),t.expr[":"][i.toLowerCase()]=function(e){return!!t.data(e,i)},t[c]=t[c]||{},o=t[c][e],s=t[c][e]=function(t,e){return this._createWidget?(arguments.length&&this._createWidget(t,e),void 0):new s(t,e)},t.extend(s,o,{version:r.version,_proto:t.extend({},r),_childConstructors:[]}),a=new n,a.options=t.widget.extend({},a.options),t.each(r,function(e,r){return t.isFunction(r)?(l[e]=function(){var t=function(){return n.prototype[e].apply(this,arguments)},i=function(t){return n.prototype[e].apply(this,t)};return function(){var e,n=this._super,o=this._superApply;return this._super=t,this._superApply=i,e=r.apply(this,arguments),this._super=n,this._superApply=o,e}}(),void 0):(l[e]=r,void 0)}),s.prototype=t.widget.extend(a,{widgetEventPrefix:o?a.widgetEventPrefix:e},l,{constructor:s,namespace:c,widgetName:e,widgetFullName:i}),o?(t.each(o._childConstructors,function(e,n){var r=n.prototype;t.widget(r.namespace+"."+r.widgetName,s,n._proto)}),delete o._childConstructors):n._childConstructors.push(s),t.widget.bridge(e,s)},t.widget.extend=function(n){for(var i,o,s=r.call(arguments,1),a=0,l=s.length;l>a;a++)for(i in s[a])o=s[a][i],s[a].hasOwnProperty(i)&&o!==e&&(n[i]=t.isPlainObject(o)?t.isPlainObject(n[i])?t.widget.extend({},n[i],o):t.widget.extend({},o):o);return n},t.widget.bridge=function(n,i){var o=i.prototype.widgetFullName||n;t.fn[n]=function(s){var a="string"==typeof s,l=r.call(arguments,1),c=this;return s=!a&&l.length?t.widget.extend.apply(null,[s].concat(l)):s,a?this.each(function(){var r,i=t.data(this,o);return i?t.isFunction(i[s])&&"_"!==s.charAt(0)?(r=i[s].apply(i,l),r!==i&&r!==e?(c=r&&r.jquery?c.pushStack(r.get()):r,!1):void 0):t.error("no such method '"+s+"' for "+n+" widget instance"):t.error("cannot call methods on "+n+" prior to initialization; "+"attempted to call method '"+s+"'")}):this.each(function(){var e=t.data(this,o);e?e.option(s||{})._init():t.data(this,o,new i(s,this))}),c}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,r){r=t(r||this.defaultElement||this)[0],this.element=t(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),r!==this&&(t.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===r&&this.destroy()}}),this.document=t(r.style?r.ownerDocument:r.document||r),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(n,r){var i,o,s,a=n;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof n)if(a={},i=n.split("."),n=i.shift(),i.length){for(o=a[n]=t.widget.extend({},this.options[n]),s=0;s<i.length-1;s++)o[i[s]]=o[i[s]]||{},o=o[i[s]];if(n=i.pop(),r===e)return o[n]===e?null:o[n];o[n]=r}else{if(r===e)return this.options[n]===e?null:this.options[n];a[n]=r}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!e).attr("aria-disabled",e),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(e,n,r){var i,o=this;"boolean"!=typeof e&&(r=n,n=e,e=!1),r?(n=i=t(n),this.bindings=this.bindings.add(n)):(r=n,n=this.element,i=this.widget()),t.each(r,function(r,s){function a(){return e||o.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("string"==typeof s?o[s]:s).apply(o,arguments):void 0}"string"!=typeof s&&(a.guid=s.guid=s.guid||a.guid||t.guid++);var l=r.match(/^(\w+)\s*(.*)$/),c=l[1]+o.eventNamespace,u=l[2];u?i.delegate(u,c,a):n.bind(c,a)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){function n(){return("string"==typeof t?r[t]:t).apply(r,arguments)}var r=this;return setTimeout(n,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,n,r){var i,o,s=this.options[e];if(r=r||{},n=t.Event(n),n.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(i in o)i in n||(n[i]=o[i]);return this.element.trigger(n,r),!(t.isFunction(s)&&s.apply(this.element[0],[n].concat(r))===!1||n.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,n){t.Widget.prototype["_"+e]=function(r,i,o){"string"==typeof i&&(i={effect:i});var s,a=i?i===!0||"number"==typeof i?n:i.effect||n:e;i=i||{},"number"==typeof i&&(i={duration:i}),s=!t.isEmptyObject(i),i.complete=o,i.delay&&r.delay(i.delay),s&&t.effects&&t.effects.effect[a]?r[e](i):a!==e&&r[a]?r[a](i.duration,i.easing,o):r.queue(function(n){t(this)[e](),o&&o.call(r[0]),n()})}})}(t)}),n("jquery_ui/mouse",["jquery","./widget"],function(t){!function(t){var e=!1;t(document).mouseup(function(){e=!1}),t.widget("ui.mouse",{version:"1.10.0",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(n){return!0===t.data(n.target,e.widgetName+".preventClickEvent")?(t.removeData(n.target,e.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(n){if(!e){this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var r=this,i=1===n.which,o="string"==typeof this.options.cancel&&n.target.nodeName?t(n.target).closest(this.options.cancel).length:!1;return i&&!o&&this._mouseCapture(n)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){r.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=this._mouseStart(n)!==!1,!this._mouseStarted)?(n.preventDefault(),!0):(!0===t.data(n.target,this.widgetName+".preventClickEvent")&&t.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return r._mouseMove(t)},this._mouseUpDelegate=function(t){return r._mouseUp(t)},t(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),e=!0,!0)):!0}},_mouseMove:function(e){return t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button?this._mouseUp(e):this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(t)}),n("jquery_ui/slider",["jquery","./core","./mouse","./widget"],function(t){!function(t){var e=5;t.widget("ui.slider",t.ui.mouse,{version:"1.10.0",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){var e,n,r=this.options,i=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),o="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",s=[];for(this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget"+" ui-widget-content"+" ui-corner-all"),this.range=t([]),r.range&&(r.range===!0&&(r.values?r.values.length&&2!==r.values.length?r.values=[r.values[0],r.values[0]]:t.isArray(r.values)&&(r.values=r.values.slice(0)):r.values=[this._valueMin(),this._valueMin()]),this.range=t("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+("min"===r.range||"max"===r.range?" ui-slider-range-"+r.range:""))),n=r.values&&r.values.length||1,e=i.length;n>e;e++)s.push(o);this.handles=i.add(t(s.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.add(this.range).filter("a").click(function(t){t.preventDefault()}).mouseenter(function(){r.disabled||t(this).addClass("ui-state-hover")}).mouseleave(function(){t(this).removeClass("ui-state-hover")}).focus(function(){r.disabled?t(this).blur():(t(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),t(this).addClass("ui-state-focus"))}).blur(function(){t(this).removeClass("ui-state-focus")}),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e)}),this._setOption("disabled",r.disabled),this._on(this.handles,this._handleEvents),this._refreshValue(),this._animateOff=!1},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(e){var n,r,i,o,s,a,l,c,u=this,h=this.options;return h.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:e.pageX,y:e.pageY},r=this._normValueFromMouse(n),i=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var n=Math.abs(r-u.values(e));(i>n||i===n&&(e===u._lastChangedValue||u.values(e)===h.min))&&(i=n,o=t(this),s=e)}),a=this._start(e,s),a===!1?!1:(this._mouseSliding=!0,this._handleIndex=s,o.addClass("ui-state-active").focus(),l=o.offset(),c=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=c?{left:0,top:0}:{left:e.pageX-l.left-o.width()/2,top:e.pageY-l.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,s,r),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,n),!1},_mouseStop:function(t){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,n,r,i,o;return"horizontal"===this.orientation?(e=this.elementSize.width,n=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,n=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),r=n/e,r>1&&(r=1),0>r&&(r=0),"vertical"===this.orientation&&(r=1-r),i=this._valueMax()-this._valueMin(),o=this._valueMin()+r*i,this._trimAlignValue(o)},_start:function(t,e){var n={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(n.value=this.values(e),n.values=this.values()),this._trigger("start",t,n)},_slide:function(t,e,n){var r,i,o;this.options.values&&this.options.values.length?(r=this.values(e?0:1),2===this.options.values.length&&this.options.range===!0&&(0===e&&n>r||1===e&&r>n)&&(n=r),n!==this.values(e)&&(i=this.values(),i[e]=n,o=this._trigger("slide",t,{handle:this.handles[e],value:n,values:i}),r=this.values(e?0:1),o!==!1&&this.values(e,n,!0))):n!==this.value()&&(o=this._trigger("slide",t,{handle:this.handles[e],value:n}),o!==!1&&this.value(n))},_stop:function(t,e){var n={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(n.value=this.values(e),n.values=this.values()),this._trigger("stop",t,n)},_change:function(t,e){if(!this._keySliding&&!this._mouseSliding){var n={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(n.value=this.values(e),n.values=this.values()),this._lastChangedValue=e,this._trigger("change",t,n)}},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),this._change(null,0),void 0):this._value()},values:function(e,n){var r,i,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(n),this._refreshValue(),this._change(null,e),void 0;if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(r=this.options.values,i=arguments[0],o=0;o<r.length;o+=1)r[o]=this._trimAlignValue(i[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,n){var r,i=0;switch(t.isArray(this.options.values)&&(i=this.options.values.length),t.Widget.prototype._setOption.apply(this,arguments),e){case"disabled":n?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.prop("disabled",!0)):this.handles.prop("disabled",!1);break;case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),r=0;i>r;r+=1)this._change(null,r);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1}},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,n,r;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);for(n=this.options.values.slice(),r=0;r<n.length;r+=1)n[r]=this._trimAlignValue(n[r]);return n},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,n=(t-this._valueMin())%e,r=t-n;return 2*Math.abs(n)>=e&&(r+=n>0?e:-e),parseFloat(r.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var e,n,r,i,o,s=this.options.range,a=this.options,l=this,c=this._animateOff?!1:a.animate,u={};this.options.values&&this.options.values.length?this.handles.each(function(r){n=100*((l.values(r)-l._valueMin())/(l._valueMax()-l._valueMin())),u["horizontal"===l.orientation?"left":"bottom"]=n+"%",t(this).stop(1,1)[c?"animate":"css"](u,a.animate),l.options.range===!0&&("horizontal"===l.orientation?(0===r&&l.range.stop(1,1)[c?"animate":"css"]({left:n+"%"},a.animate),1===r&&l.range[c?"animate":"css"]({width:n-e+"%"},{queue:!1,duration:a.animate})):(0===r&&l.range.stop(1,1)[c?"animate":"css"]({bottom:n+"%"},a.animate),1===r&&l.range[c?"animate":"css"]({height:n-e+"%"},{queue:!1,duration:a.animate}))),e=n}):(r=this.value(),i=this._valueMin(),o=this._valueMax(),n=o!==i?100*((r-i)/(o-i)):0,u["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[c?"animate":"css"](u,a.animate),"min"===s&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:n+"%"},a.animate),"max"===s&&"horizontal"===this.orientation&&this.range[c?"animate":"css"]({width:100-n+"%"},{queue:!1,duration:a.animate}),"min"===s&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:n+"%"},a.animate),"max"===s&&"vertical"===this.orientation&&this.range[c?"animate":"css"]({height:100-n+"%"},{queue:!1,duration:a.animate}))},_handleEvents:{keydown:function(n){var r,i,o,s,a=t(n.target).data("ui-slider-handle-index");switch(n.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(n.preventDefault(),!this._keySliding&&(this._keySliding=!0,t(n.target).addClass("ui-state-active"),r=this._start(n,a),r===!1))return
            }switch(s=this.options.step,i=o=this.options.values&&this.options.values.length?this.values(a):this.value(),n.keyCode){case t.ui.keyCode.HOME:o=this._valueMin();break;case t.ui.keyCode.END:o=this._valueMax();break;case t.ui.keyCode.PAGE_UP:o=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/e);break;case t.ui.keyCode.PAGE_DOWN:o=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/e);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(i===this._valueMax())return;o=this._trimAlignValue(i+s);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(i===this._valueMin())return;o=this._trimAlignValue(i-s)}this._slide(n,a,o)},keyup:function(e){var n=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,n),this._change(e,n),t(e.target).removeClass("ui-state-active"))}}})}(t)}),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,r=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t};n("widget/slider",["common/has_parent","common/continuum_view","backbone","underscore","./slidertemplate","jquery_ui/slider"],function(e,n,i,o,s){var a,l,c,u,h,p,d,_;return a=n.View,c=function(e){function n(){return this.slide=t(this.slide,this),p=n.__super__.constructor.apply(this,arguments)}return r(n,e),n.prototype.tagName="div",n.prototype.template=s,n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.render()},n.prototype.render=function(){var t,e,n,r;return this.$el.empty(),t=this.template(this.model.attributes),this.$el.html(t),e=this.mget("end"),n=this.mget("start"),r=(e-n)/50,console.log("sliderval",n,e,r),this.$(".slider").slider({orientation:this.mget("orientation"),animate:"fast",slide:o.throttle(this.slide,200),value:this.mget("value"),min:n,max:e,step:r})},n.prototype.slide=function(t,e){var n;return n=e.value,console.log("sliding",n),this.mset("value",n)},n}(a),l=function(t){function e(){return d=e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="Slider",e.prototype.default_view=c,e.prototype.defaults=function(){var t;return t={title:"",value:.5,start:0,end:1,orientation:"horizontal"}},e}(e),u=function(t){function e(){return _=e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.model=l,e}(i.Collection),h=new u,{Model:l,Collection:h,View:c}})}.call(this),function(){n("common/base",["underscore","require","common/custom","common/gmap_plot","common/grid_plot","common/plot","common/plot_context","mapper/1d/categorical_mapper","mapper/1d/linear_mapper","mapper/2d/grid_mapper","mapper/color/linear_color_mapper","range/data_factor_range","range/data_range1d","range/factor_range","range/range1d","renderer/annotation/legend","renderer/glyph/glyph_factory","renderer/guide/categorical_axis","renderer/guide/datetime_axis","renderer/guide/grid","renderer/guide/linear_axis","renderer/overlay/box_selection","source/column_data_source","source/server_data_source","ticking/abstract_ticker","ticking/adaptive_ticker","ticking/basic_tick_formatter","ticking/basic_ticker","ticking/categorical_tick_formatter","ticking/categorical_ticker","ticking/composite_ticker","ticking/datetime_tick_formatter","ticking/datetime_ticker","ticking/days_ticker","ticking/months_ticker","ticking/single_interval_ticker","ticking/years_ticker","tool/box_select_tool","tool/box_zoom_tool","tool/crosshair_tool","tool/data_range_box_select_tool","tool/embed_tool","tool/hover_tool","tool/pan_tool","tool/preview_save_tool","tool/reset_tool","tool/resize_tool","tool/wheel_zoom_tool","tool/object_explorer_tool","widget/data_slider","widget/pandas/ipython_remote_data","widget/pandas/pandas_pivot_table","widget/pandas/pandas_plot_source","widget/paragraph","widget/hbox","widget/vbox","widget/textinput","widget/vboxmodelform","widget/pretext","widget/selectbox","widget/slider"],function(t,e){var n,r,i,o,s;return e("common/custom").monkey_patch(),r={prefix:""},o={Plot:"common/plot",GMapPlot:"common/gmap_plot",GridPlot:"common/grid_plot",PlotContext:"common/plot_context",PlotList:"common/plot_context",DataFactorRange:"range/data_factor_range",DataRange1d:"range/data_range1d",FactorRange:"range/factor_range",Range1d:"range/range1d",Glyph:"renderer/glyph/glyph_factory",LinearAxis:"renderer/guide/linear_axis",CategoricalAxis:"renderer/guide/categorical_axis",DatetimeAxis:"renderer/guide/datetime_axis",Grid:"renderer/guide/grid",Legend:"renderer/annotation/legend",BoxSelection:"renderer/overlay/box_selection",ColumnDataSource:"source/column_data_source",ServerDataSource:"source/server_data_source",AbstractTicker:"ticking/abstract_ticker",AdaptiveTicker:"ticking/adaptive_ticker",BasicTicker:"ticking/basic_ticker",BasicTickFormatter:"ticking/basic_tick_formatter",CategoricalTicker:"ticking/categorical_ticker",CategoricalTickFormatter:"ticking/categorical_tick_formatter",CompositeTicker:"ticking/composite_ticker",DatetimeTicker:"ticking/datetime_ticker",DatetimeTickFormatter:"ticking/datetime_tick_formatter",DaysTicker:"ticking/days_ticker",MonthsTicker:"ticking/months_ticker",SingleIntervalTicker:"ticking/single_interval_ticker",YearsTicker:"ticking/years_ticker",PanTool:"tool/pan_tool",WheelZoomTool:"tool/wheel_zoom_tool",ResizeTool:"tool/resize_tool",CrosshairTool:"tool/crosshair_tool",BoxSelectTool:"tool/box_select_tool",BoxZoomTool:"tool/box_zoom_tool",HoverTool:"tool/hover_tool",DataRangeBoxSelectTool:"tool/data_range_box_select_tool",PreviewSaveTool:"tool/preview_save_tool",EmbedTool:"tool/embed_tool",ResetTool:"tool/reset_tool",ObjectExplorerTool:"tool/object_explorer_tool",DataSlider:"widget/data_slider",IPythonRemoteData:"widget/pandas/ipython_remote_data",PandasPivotTable:"widget/pandas/pandas_pivot_table",PandasPlotSource:"widget/pandas/pandas_plot_source",Paragraph:"widget/paragraph",HBox:"widget/hbox",VBox:"widget/vbox",VBoxModelForm:"widget/vboxmodelform",TextInput:"widget/textinput",PreText:"widget/pretext",Select:"widget/selectbox",Slider:"widget/slider"},s={},i={},n=function(t){var n;if(i[t])return i[t];if(!o[t])throw"./base: Unknown Collection "+t;return n=o[t],null==s[n]&&(console.log("calling require",n),s[n]=e(n)),s[n].Collection},n.register=function(t,e){return i[t]=e},{collection_overrides:i,mod_cache:s,locations:o,Collections:n,Config:r}})}.call(this),function(){n("common/plotting",["underscore","jquery","./plot","range/data_range1d","range/factor_range","range/range1d","renderer/annotation/legend","renderer/glyph/glyph_factory","renderer/guide/categorical_axis","renderer/guide/linear_axis","renderer/guide/grid","renderer/overlay/box_selection","source/column_data_source","tool/box_select_tool","tool/box_zoom_tool","tool/hover_tool","tool/pan_tool","tool/preview_save_tool","tool/resize_tool","tool/wheel_zoom_tool","tool/reset_tool","renderer/guide/datetime_axis"],function(t,e,n,r,i,o,s,a,l,c,u,h,p,d,_,f,g,m,v,y,b,w){var x,k,j,C,T,M,N,S,A;return N=function(e){var n,r,i,o;for(t.isArray(e)||(e=[e]),r=[],i=0,o=e.length;o>i;i++)n=e[i],n instanceof p.Model?r.push(n):r.push(p.Collection.create({data:n}));return r},M=function(t,e,n){var s;return"auto"===t?r.Collection.create({sources:function(){var t,r,i;for(i=[],t=0,r=e.length;r>t;t++)s=e[t],i.push({source:s.ref(),columns:n});return i}()}):t instanceof o.Model||t instanceof i.Model?t:"string"==typeof t[0]?i.Collection.create({factors:t}):o.Collection.create({start:t[0],end:t[1]})},T=function(e,n,r,i){var o,s,l,c,u,h,p,d,_,f;for(s=[],t.isArray(n)||(n=[n]),1===r.length&&(r=function(){var t,e,i;for(i=[],t=0,e=n.length;e>t;t++)p=n[t],i.push(r[0]);return i}()),null==i&&(i={fill_alpha:.1,line_alpha:.1}),t.isArray(i)||(i=function(){var t,e,r;for(r=[],t=0,e=n.length;e>t;t++)p=n[t],r.push(i);return r}()),f=t.zip(n,i,r),d=0,_=f.length;_>d;d++)h=f[d],u=h[0],l=h[1],c=h[2],o=a.Collection.create({parent:e.ref(),data_source:c.ref(),glyphspec:u,nonselection_glyphspec:l}),s.push(o);return s},x=function(e,n,r,i,o){var s,a,u,h,p,d,_,f,g,m,v,y,b;if(h=[],n)if(n===!0&&(n=["min","max"]),t.isArray(n)||(n=[n]),"datetime"===n[0])a=w.Collection.create({dimension:0,axis_label:"x",location:"min",parent:e.ref(),plot:e.ref()}),h.push(a);else if("FactorRange"===i.type)for(d=0,m=n.length;m>d;d++)u=n[d],a=l.Collection.create({dimension:0,axis_label:"x",location:u,parent:e.ref(),plot:e.ref()}),h.push(a);else for(_=0,v=n.length;v>_;_++)u=n[_],a=c.Collection.create({dimension:0,axis_label:"x",location:u,parent:e.ref(),plot:e.ref()}),h.push(a);if(p=[],r)if(r===!0&&(r=["min","max"]),t.isArray(r)||(r=[r]),"datetime"===r[0])a=w.Collection.create({dimension:1,axis_label:"y",location:"min",parent:e.ref(),plot:e.ref()}),p.push(a);else if("FactorRange"===o.type)for(f=0,y=r.length;y>f;f++)u=r[f],a=l.Collection.create({dimension:1,axis_label:"y",location:u,parent:e.ref(),plot:e.ref()}),p.push(a);else for(g=0,b=r.length;b>g;g++)u=r[g],a=c.Collection.create({dimension:1,axis_label:"y",location:u,parent:e.ref(),plot:e.ref()}),p.push(a);return e.add_renderers(function(){var t,e,n;for(n=[],e=0,t=h.length;t>e;e++)s=h[e],n.push(s.ref());return n}()),e.add_renderers(function(){var t,e,n;for(n=[],e=0,t=p.length;t>e;e++)s=p[e],n.push(s.ref());return n}()),[h,p]},k=function(t,e,n,r,i){var o,s,a;return a=[],e&&r.length>0&&(s=u.Collection.create({dimension:0,parent:t.ref(),plot:t.ref(),axis:r[0].ref()}),a.push(s)),n&&i.length>0?(s=u.Collection.create({dimension:1,parent:t.ref(),plot:t.ref(),axis:i[0].ref()}),a.push(s),t.add_renderers(function(){var t,e,n;for(n=[],t=0,e=a.length;e>t;t++)o=a[t],n.push(o.ref());return n}())):void 0},C=function(t,e,n,r,i){var o,s,a,l,c,u,p,w,x,k,j,C;if(e!==!1)return e===!0&&(e="pan,wheel_zoom,select,resize,preview,reset,box_zoom"),o=[],e.indexOf("pan")>-1&&(u=g.Collection.create({dataranges:[r.ref(),i.ref()],dimensions:["width","height"]}),o.push(u)),e.indexOf("wheel_zoom")>-1&&(C=y.Collection.create({dataranges:[r.ref(),i.ref()],dimensions:["width","height"]}),o.push(C)),e.indexOf("hover")>-1&&(c=f.Collection.create({plot:t.ref()}),o.push(c)),e.indexOf("select")>-1&&(j=d.Collection.create({renderers:function(){var t,e,r;for(r=[],t=0,e=n.length;e>t;t++)l=n[t],r.push(l.ref());return r}()}),k=h.Collection.create({tool:j.ref()}),o.push(j),t.add_renderers([k.ref()])),e.indexOf("resize")>-1&&(x=v.Collection.create(),o.push(x)),e.indexOf("preview")>-1&&(p=m.Collection.create(),o.push(p)),e.indexOf("reset")>-1&&(w=b.Collection.create(),o.push(w)),e.indexOf("box_zoom")>-1&&(a=_.Collection.create(),s=h.Collection.create({tool:a.ref()}),o.push(a),t.add_renderers([s.ref()])),t.set_obj("tools",o)},j=function(t,e,n){var r,i,o,a,l,c;if(e){for(a={},i=l=0,c=n.length;c>l;i=++l)r=n[i],a[e+String(i)]=[r.ref()];return o=s.Collection.create({parent:t.ref(),plot:t.ref(),orientation:"top_right",legends:a}),t.add_renderers([o.ref()])}},S=function(t,e,r){var i,o,s,a,l,c,u,h,p,d,_,f,g,m,v,y,b,w;return l=r.nonselected,h=r.title,i=r.dims,g=r.xrange,b=r.yrange,d=r.xaxes,m=r.yaxes,f=r.xgrid,y=r.ygrid,_=r.xdr,v=r.ydr,p=r.tools,a=r.legend,null==l&&(l=null),null==h&&(h=""),null==i&&(i=[400,400]),null==g&&(g="auto"),null==b&&(b="auto"),null==d&&(d=!0),null==m&&(m=!0),null==f&&(f=!0),null==y&&(y=!0),null==p&&(p=!0),null==a&&(a=!1),u=N(e),_=M(g,u,["x"]),v=M(b,u,["y"]),c=n.Collection.create({x_range:_.ref(),y_range:v.ref(),canvas_width:i[0],canvas_height:i[1],outer_width:i[0],outer_height:i[1],title:h}),s=T(c,t,u,l),c.add_renderers(function(){var t,e,n;for(n=[],t=0,e=s.length;e>t;t++)o=s[t],n.push(o.ref());return n}()),w=x(c,d,m,_,v),d=w[0],m=w[1],k(c,f,y,d,m),C(c,p,s,_,v),j(c,a,s),c},A=function(n,r){var i,o;return null==r&&(r=!1),i=e('<div class="plotdiv"></div>'),r=r?e(r):e("body"),r.append(i),o=function(){var t;return t=new n.default_view({model:n}),window.pview=t,i.append(t.$el),console.log("added plot: "+n.get("title"))},t.defer(o)},{make_plot:S,create_glyphs:T,show:A}})}.call(this),function(){n("common/affine",[],function(){var t;return t=function(){function t(t,e,n,r,i,o){this.a=null!=t?t:1,this.b=null!=e?e:0,this.c=null!=n?n:0,this.d=null!=r?r:1,this.tx=null!=i?i:0,this.ty=null!=o?o:0}return t.prototype.apply=function(t,e){return[this.a*t+this.b*e+this.tx,this.c*t+this.d*e+this.ty]},t.prototype.v_apply=function(t,e){var n,r,i,o,s;for(r=new Float32Array(t.length),i=new Float32Array(e.length),n=o=0,s=t.length;s>=0?s>o:o>s;n=s>=0?++o:--o)r[n]=this.a*t[n]+this.b*e[n]+this.tx,i[n]=this.c*t[n]+this.d*e[n]+this.ty;return[r,i]},t.prototype.is_identity=function(){return 1===this.a&&0===this.b&&0===this.c&&1===this.d&&0===this.tx&&0===this.ty},t.prototype.translate=function(t,e){return this.tx=this.a*t+this.b*e,this.ty=this.c*t+this.d*e},t.prototype.scale=function(t,e){return this.a*=t,this.b*=e,this.c*=t,this.d*=e},t.prototype.rotate=function(t){var e,n,r,i,o,s;return e=Math.cos(t),n=Math.sin(t),r=e*this.a+n*this.b,i=e*this.b-n*this.a,o=e*this.c+n*this.d,s=e*this.d-n*this.c,this.a=r,this.b=i,this.c=o,this.d=s},t.prototype.shear=function(t,e){var n,r,i,o;return n=this.a+t*this.c,r=this.b+t*this.d,i=this.c+e*this.a,o=this.d+e*this.b,this.a=n,this.b=r,this.c=i,this.d=o},t.prototype.reflect_x=function(t){return this.tx=2*this.a*t+this.tx,this.ty=2*this.c*t+this.ty,this.a=-this.a,this.c=-this.c},t.prototype.reflect_y=function(t){return this.tx=2*this.b*t+this.tx,this.ty=2*this.d*t+this.ty,this.b=-this.b,this.d=-this.d},t.prototype.reflect_xy=function(t,e){return this.tx=2*(this.a*t+this.b*e)+this.tx,this.ty=2*(this.c*t+this.d*e)+this.ty,this.a=-this.a,this.b=-this.b,this.c=-this.c,this.d=-this.d},t.prototype.compose_right=function(t){var e,n,r,i,o,s;return e=this.a*t.a+this.b*t.c,n=this.a*t.b+this.b*t.d,r=this.c*t.a+this.d*t.c,i=this.c*t.b+this.d*t.d,o=this.a*t.tx+this.b*t.ty+this.tx,s=this.c*t.tx+this.d*t.ty+this.ty,this.a=e,this.b=n,this.c=r,this.d=i,this.tx=o,this.ty=s},t.prototype.compose_left=function(t){var e,n,r,i,o,s;return e=t.a*this.a+t.b*this.c,n=t.a*this.b+t.b*this.d,r=t.c*this.a+t.d*this.c,i=t.c*this.b+t.d*this.d,o=t.a*this.tx+t.b*this.ty+t.tx,s=t.c*this.tx+t.d*this.ty+t.ty,this.a=e,this.b=n,this.c=r,this.d=i,this.tx=o,this.ty=s},t}()})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("common/png_view",["./continuum_view"],function(t){var n,r;return n=function(t){function n(){return r=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.thumb_x=t.thumb_x||40,this.thumb_y=t.thumb_y||40,this.render(),this},n.prototype.render=function(){var t;return this.$el.html(""),t=this.model.get("png"),this.$el.append($("<p> "+this.model.get("title")+" </p>")),this.$el.append($("<img modeltype='"+this.model.type+"' modelid='"+this.model.get("id")+"' class='pngview' width='"+this.thumb_x+"'  height='"+this.thumb_y+"'  src='"+t+"'/>"))},n}(t.View)})}.call(this),function(){n("common/random",[],function(){var t;return t=function(){function t(t){this.seed=t,this.multiplier=1664525,this.modulo=4294967296,this.offset=1013904223,null!=this.seed&&t>=0&&t<this.modulo||(this.seed=(new Date).valueOf()*(new Date).getMilliseconds()%this.modulo)}return t.prototype.seed=function(t){return this.seed=t},t.prototype.randn=function(){return this.seed=(this.multiplier*this.seed+this.offset)%this.modulo},t.prototype.randf=function(){return this.randn()/this.modulo},t.prototype.rand=function(t){return Math.floor(this.randf()*t)},t.prototype.rand2=function(t,e){return t+this.rand(e-t)},t}()})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};n("common/socket",["backbone","underscore","common/base","common/load_models"],function(e,n,r,i){var o,s,a,l;return o=r.Config,s=function(){function r(e){this.onmessage=t(this.onmessage,this);var n=this;this.auth={},this.ws_conn_string=e,this._connected=$.Deferred(),this.connected=this._connected.promise(),this.s=window.MozWebSocket?new MozWebSocket(e):new WebSocket(e),this.s.onopen=function(){return n._connected.resolve()},this.s.onmessage=this.onmessage}return n.extend(r.prototype,e.Events),r.prototype.onmessage=function(t){var e,n,r;return e=t.data,n=e.indexOf(":"),n=e.indexOf(":",n+1),r=e.substring(0,n),e=e.substring(n+1),this.trigger("msg:"+r,e),null},r.prototype.send=function(t){var e=this;return $.when(this.connected).done(function(){return e.s.send(t)})},r.prototype.subscribe=function(t,e){var n;return this.auth[t]=e,n=JSON.stringify({msgtype:"subscribe",topic:t,auth:e}),this.send(n)},r}(),l=function(t,e,n){return t.subscribe(e,n),t.on("msg:"+e,function(t){var e,n,r,s,a,l,c;if(r=JSON.parse(t),"modelpush"===r.msgtype)i(r.modelspecs);else if("modeldel"===r.msgtype)for(c=r.modelspecs,a=0,l=c.length;l>a;a++)s=c[a],n=resolve_ref(s.type,s.id),n&&n.destroy({local:!0});else"status"===r.msgtype&&"subscribesuccess"===r.status[0]?(e=r.status[2],o.clientid=e,$.ajaxSetup({headers:{"Continuum-Clientid":e}})):console.log(r);return null})},a={WebSocketWrapper:s,submodels:l}})}.call(this),function(){n("server/serverutils",["common/base","server/serverutils","common/socket","common/load_models"],function(t,n,r,i){var o,s,a,l,c,u;return o={},s={},l={},a=r.WebSocketWrapper,c=r.submodels,o._doc_loaded=$.Deferred(),o._doc_requested=$.Deferred(),s.doc_loaded=o._doc_loaded.promise(),s.doc_requested=o._doc_requested.promise(),s.doc_promises={},l.wswrapper=null,l.plotcontext=null,l.plotcontextview=null,l.Promises=s,u={load_one_object_chain:function(t,n){var r,o,s;return r=e("common/base").Config,s=""+r.prefix+"/bokeh/objinfo/"+t+"/"+n,console.log(s),o=$.get(s),o.done(function(e){var n,r;return n=e.all_models,i(n),r=e.apikey,c(l.wswrapper,"bokehplot:"+t,r)}),o},load_user:function(){var t;return t=$.get("/bokeh/userinfo/",{})},load_doc_once:function(t){var e;return _.has(s.doc_promises,t)?(console.log("already found "+t+" in promises"),s.doc_promises[t]):(console.log(""+t+" not in promises, loading it"),e=u.load_doc(t),s.doc_promises[t]=e,e)},load_doc_by_title:function(t){var n,r;return n=e("common/base").Config,r=$.get(n.prefix+"/bokeh/doc",{title:t}).done(function(t){var e,n,r;return e=t.all_models,i(e),n=t.apikey,r=t.docid,c(l.wswrapper,"bokehplot:"+r,n)})},load_doc_static:function(t,e){" loads data without making a websocket connection ";var n;return load_data(e.all_models),n=jQuery.Deferred(),n.resolve(),n},load_doc:function(t){var n,r,o;return o=u.make_websocket(),n=e("common/base").Config,r=$.get(n.prefix+("/bokeh/bokehinfo/"+t+"/"),{}).done(function(e){var n,r;return n=e.all_models,i(n),r=e.apikey,c(l.wswrapper,"bokehplot:"+t,r)})},make_websocket:function(){var t,n;return t=e("common/base").Config,n=new a(t.ws_conn_string),l.wswrapper=n,n},render_plots:function(t,n,r){var i,o,s,a;return null==n&&(n=null),null==r&&(r={}),i=e("common/base").Collections,s=i(t.type).get(t.id),n||(n=s.default_view),o=_.extend(r,{model:s}),a=new n(o),s=s,a=a,a.render(),l.plotcontext=s,l.plotcontextview=a},bokeh_connection:function(t,e,n){return _.isUndefined(n)&&(n="https"),"pending"===s.doc_requested.state()?(o._doc_requested.resolve(),$.get(""+n+"://"+t+"/bokeh/publicbokehinfo/"+e,{},function(t){return console.log("instatiate_doc_single, docid",e),t=JSON.parse(t),i(t.all_models),o._doc_loaded.resolve(t)})):void 0}},l.utility=u,l})}.call(this),function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};n("server/embed_core",["common/base","common/load_models","server/serverutils"],function(e,n,r){var i,o,s,a,l,c,u,h,p,d,f,g,m;return m=r.utility,a=function(t,e){return s(t.bokeh_modelid,t.bokeh_modeltype,t.element,e)},s=function(t,r,i,o){var s,a,l;return s=_.keys(o)[0],!s!==t?(console.log("addPlot"),console.log(t,r,i),n(o[s]),a=e.Collections(r).get(t),l=new a.default_view({model:a}),l.render(),_.delay(function(){return $(i).replaceWith(l.$el)})):void 0},o=function(t){return console.log("addDirectPlotWrap"),i(t.bokeh_docid,t.bokeh_ws_conn_string,t.bokeh_docapikey,t.bokeh_root_url,t.bokeh_modelid,t.bokeh_modeltype,t.element)},f=function(t,n,r,i){var o,s;return console.log("serverLoad"),s={"BOKEH-API-KEY":r},$.ajaxSetup({headers:s}),o=e.Config,o.prefix=i,o.ws_conn_string=n,m.load_doc_once(t)},i=function(t,n,r,i,o,s,a){return f(t,n,r,i).done(function(){var t,n,r;return console.log("addPlot"),console.log(o,s,a),n=e.Collections(s),t=n.get(o),r=new t.default_view({model:t}),_.delay(function(){return $(a).replaceWith(r.$el)})})},h=function(t){var e,n;return e=[""+t+"css/bokeh.css",""+t+"css/continuum.css",""+t+"js/vendor/bootstrap/bootstrap-bokeh-2.0.4.css"],n=function(t){var e;return e=document.createElement("link"),e.href=t,e.rel="stylesheet",e.type="text/css",document.body.appendChild(e)},_.map(e,n)},u=[],p=function(t){"this takes a bokeh embed script element and returns the relvant\nattributes through to a dictionary, ";var e,n,r,i,o,s,a;for(n=t.attributes,i=/bokeh.*/,o={},r=0,s=0,a=n.length;a>s;s++)e=n[s],e.name.match(i)&&(o[e.name]=e.value,r++);return r>0?o:!1},g={},c=function(){var e,n,r,i,o,s,a,l,c,h,d;for(i=document.getElementsByTagName("script"),c=/.*embed.js.*/,l=[],h=0,d=i.length;d>h;h++)r=i[h],s=t.call(u,r)<0,a=r.src.match(c),s&&a&&(u.push(r),o=p(r),n=document.createElement("div"),e=document.createElement("div"),e.className="bokeh-container",r.parentNode.insertBefore(e,r),o.element=e,l.push(o));return l},d=function(t){var e,n;return n=function(e,n){var r;return"embeddata"!==e.bokeh_plottype?(o(e),delete g[n]):(r=_.keys(t)[0],n===r?(a(e,t),delete g[n]):void 0)},e=c(),_.each(e,function(t){return g[t.bokeh_modelid]=t}),_.map(g,n)},l={search_and_plot:d,injectCss:h}})}.call(this),n("server/usercontext/userdocstemplate",[],function(){var t=function(t){var e=function(t){"undefined"==typeof t&&null==t&&(t="");var e=new String(t);return e.ecoSafe=!0,e};return function(){var t=[],n=this,r=function(e){"undefined"!=typeof e&&null!=e&&t.push(e.ecoSafe?e:n.escape(e))};return function(){r(e('<div class="accordion">\n</div>\n'))}.call(this),t.join("")}.call(function(){var n,r={escape:function(t){return(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},safe:e};for(n in t)r[n]=t[n];return r}())};return t}),n("server/usercontext/documentationtemplate",[],function(){var t=function(t){var e=function(t){"undefined"==typeof t&&null==t&&(t="");var e=new String(t);return e.ecoSafe=!0,e};return function(){var t=[],n=this,r=function(e){"undefined"!=typeof e&&null!=e&&t.push(e.ecoSafe?e:n.escape(e))};return function(){r(e("<p>\n  <b>\n    You have no Plots.  Follow the intsructions\n    below to create some\n  </b>\n</p>\n"))}.call(this),t.join("")}.call(function(){var n,r={escape:function(t){return(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},safe:e};for(n in t)r[n]=t[n];return r}())};return t}),n("server/usercontext/wrappertemplate",[],function(){var t=function(t){var e=function(t){"undefined"==typeof t&&null==t&&(t="");var e=new String(t);return e.ecoSafe=!0,e};return function(){var t=[],n=this,r=function(e){"undefined"!=typeof e&&null!=e&&t.push(e.ecoSafe?e:n.escape(e))};return function(){r(e('<div class="accordion-heading bokehdocheading">\n  <a class="accordion-toggle bokehdoclabel" data-toggle="collapse" \n     href="#')),r(this.bodyid),r(e('">\n    Document: ')),r(this.model.get("title")),r(e('\n    <i class="bokehdelete icon-trash"></i>\n  </a>\n</div>\n<div id="')),r(this.bodyid),r(e('" class="accordion-body collapse">\n  <div class="accordion-inner plots">\n  </div>\n</div>\n\n\n'))}.call(this),t.join("")}.call(function(){var n,r={escape:function(t){return(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},safe:e};for(n in t)r[n]=t[n];return r}())};return t}),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n("server/usercontext/usercontext",["common/base","../serverutils","common/continuum_view","./userdocstemplate","./documentationtemplate","./wrappertemplate","common/has_parent","common/build_views","common/load_models"],function(t,n,r,i,o,s,a,l){var c,u,h,p,d,f,g,m,v,y,b;return f={},c=r.View,g=n.utility,h=function(t){function n(){return m=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.template=s,n.prototype.attributes={"class":"accordion-group"},n.prototype.events={"click .bokehdoclabel":"loaddoc","click .bokehdelete":"deldoc"},n.prototype.deldoc=function(t){return t.preventDefault(),this.model.destroy(),!1},n.prototype.loaddoc=function(){return this.model.load()},n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.render_init()},n.prototype.delegateEvents=function(t){return n.__super__.delegateEvents.call(this,t),this.listenTo(this.model,"loaded",this.render)},n.prototype.render_init=function(){var t;return t=this.template({model:this.model,bodyid:_.uniqueId()}),this.$el.html(t)},n.prototype.render=function(){var t;return t=this.model.get_obj("plot_context"),this.plot_context_view=new t.default_view({model:t}),this.$el.find(".plots").append(this.plot_context_view.el),!0},n}(c),d=function(t){function n(){return v=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){return this.docs=t.docs,this.collection=t.collection,this.views={},n.__super__.initialize.call(this,t),this.render()},n.prototype.attributes={"class":"usercontext"},n.prototype.events={"click .bokehrefresh":function(){return this.collection.fetch({update:!0})}},n.prototype.delegateEvents=function(t){var e=this;return n.__super__.delegateEvents.call(this,t),this.listenTo(this.collection,"add",this.render),this.listenTo(this.collection,"remove",this.render),this.listenTo(this.collection,"add",function(t){return e.listenTo(t,"loaded",function(){return e.listenTo(t.get_obj("plot_context"),"change",function(){return e.trigger("show")})})}),this.listenTo(this.collection,"remove",function(t){return e.stopListening(t)})},n.prototype.render_docs=function(){return this.$el.html(o()),this.$el.append(this.docs)},n.prototype.render=function(){var t,e,n,r,o;if(0===this.collection.models.length&&this.docs)return this.render_docs();for(t=i(),_.map(_.values(this.views),function(t){return t.$el.detach()}),n=this.collection.models.slice().reverse(),l(this.views,n,{}),this.$el.html(t),r=0,o=n.length;o>r;r++)e=n[r],this.$el.find(".accordion").append(this.views[e.id].el);return this},n}(c),u=function(t){function n(){return y=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=h,n.prototype.idAttribute="docid",n.prototype.defaults={docid:null,title:null,plot_context:null,apikey:null},n.prototype.sync=function(){},n.prototype.destroy=function(t){return n.__super__.destroy.call(this,t),$.ajax({url:"/bokeh/doc/"+this.get("docid")+"/",type:"delete"})},n.prototype.load=function(t){var e,n,r,i=this;if(!this.loaded)return t?(r=this.get("title"),n=g.load_doc_by_title(r)):(e=this.get("docid"),n=g.load_doc(e)),n.done(function(t){return i.set("docid",t.docid),i.set("apikey",t.apikey),i.set("plot_context",t.plot_context_ref),i.trigger("loaded"),i.loaded=!0})},n}(a),p=function(n){function r(){return b=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.model=u,r.prototype.subscribe=function(t,e){return t.subscribe("bokehuser:"+e,null),this.listenTo(t,"msg:bokehuser:"+e,function(t){return t=JSON.parse(t),"docchange"===t.msgtype?this.fetch({update:!0}):void 0})},r.prototype.fetch=function(e){var n,r,i,o=this;return _.isUndefined(e)&&(e={}),i=t.Config.prefix+"/bokeh/userinfo/",n=r=$.get(i,{}),n.done(function(t){var n;return n=t.docs,e.update?o.set(n,e):o.reset(n,e)}),n},r}(Backbone.Collection),f.UserDocs=p,f.UserDocsView=d,f.Doc=u,f.DocView=h,f})}.call(this),function(){n("server/serverrun",["common/base","./serverutils","./usercontext/usercontext","common/has_properties"],function(t,e,n,r){var i,o,s,a,l,c,u;return i=t.Config,o=e.Promises,i.ws_conn_string="ws://"+window.location.host+"/bokeh/sub",a=function(n,i){return r.prototype.sync=Backbone.sync,$(function(){var r,o;return o=e.utility.make_websocket(),r=e.utility.load_one_object_chain(n,i),r.done(function(e){var n,r;return n=t.Collections(e.type).get(i),r=new n.default_view({model:n}),l(r.el)})})},s=function(t){return r.prototype.sync=Backbone.sync,$(function(){var r,i;return i=e.utility.make_websocket(),r=new n.UserDocs,r.subscribe(i,"defaultuser"),window.userdocs=r,s=r.fetch(),s.done(function(){return null!=t?u(r,t):c(r)})})},c=function(t){var e;return e=new n.UserDocsView({collection:t}),l(e.el)},u=function(t,e){var n,r;return n=t.find(function(t){return t.get("title")===e}),null!=n?(n.on("loaded",function(){var t,e;return t=n.get_obj("plot_context"),e=new t.default_view({model:t}),l(e.el)}),n.load()):(r="Document '"+e+"' wasn't found on this server.",l(r),console.error(r))},l=function(t){return $("#PlotPane").append(t)},{load:s,load_one_object:a}})}.call(this),function(){n("main",["require","exports","module","backbone","underscore","common/base","common/base","common/gmap_plot","common/grid_plot","common/has_parent","common/has_properties","common/plot","common/plotting","common/affine","common/build_views","common/bulk_save","common/continuum_view","common/grid_view_state","common/load_models","common/plot_context","common/plot_widget","common/png_view","common/random","common/safebind","common/svg_colors","common/view_state","mapper/1d/linear_mapper","mapper/1d/categorical_mapper","mapper/2d/grid_mapper","mapper/color/linear_color_mapper","palettes/palettes","renderer/annotation/legend","renderer/glyph/glyph","renderer/glyph/glyph_factory","renderer/guide/categorical_axis","renderer/guide/datetime_axis","renderer/guide/grid","renderer/guide/linear_axis","renderer/overlay/box_selection","renderer/properties","server/embed_core","server/serverrun","server/serverutils","source/column_data_source","ticking/abstract_ticker","ticking/adaptive_ticker","ticking/basic_ticker","ticking/basic_tick_formatter","ticking/categorical_ticker","ticking/categorical_tick_formatter","ticking/composite_ticker","ticking/datetime_ticker","ticking/datetime_tick_formatter","ticking/days_ticker","ticking/months_ticker","ticking/single_interval_ticker","ticking/years_ticker","tool/box_select_tool","tool/box_zoom_tool","tool/crosshair_tool","tool/data_range_box_select_tool","tool/embed_tool","tool/hover_tool","tool/pan_tool","tool/preview_save_tool","tool/reset_tool","tool/resize_tool","tool/wheel_zoom_tool","tool/object_explorer_tool","server/serverrun","server/serverrun","widget/data_slider","widget/hbox","widget/vbox","widget/vboxmodelform","widget/textinput","util/object_explorer"],function(t,e){var n,r;return window.Float64Array||(console.warn("Float64Array is not supported. Using generic Array instead."),window.Float64Array=Array),n={},n.version="0.4.4",n.Backbone=t("backbone"),n._=t("underscore"),n.Collections=t("common/base").Collections,n.Config=t("common/base").Config,n.GMapPlot=t("common/gmap_plot"),n.GridPlot=t("common/grid_plot"),n.HasParent=t("common/has_parent"),n.HasProperties=t("common/has_properties"),n.Plot=t("common/plot"),n.Plotting=t("common/plotting"),n.Affine=t("common/affine"),n.build_views=t("common/build_views"),n.bulk_save=t("common/bulk_save"),n.ContinuumView=t("common/continuum_view"),n.GridViewState=t("common/grid_view_state"),n.load_models=t("common/load_models"),n.PlotContext=t("common/plot_context"),n.PlotWidget=t("common/plot_widget"),n.PNGView=t("common/png_view"),n.Random=t("common/random"),n.safebind=t("common/safebind"),n.SVGColors=t("common/svg_colors"),n.ViewState=t("common/view_state"),n.LinearMapper=t("mapper/1d/linear_mapper"),n.CategoricalMapper=t("mapper/1d/categorical_mapper"),n.GridMapper=t("mapper/2d/grid_mapper"),n.LinearColorMapper=t("mapper/color/linear_color_mapper"),n.Palettes=t("palettes/palettes"),n.Legend=t("renderer/annotation/legend"),n.Glyph=t("renderer/glyph/glyph"),r=t("renderer/glyph/glyph_factory"),n.AnnularWedge=r.annular_wedge,n.Annulus=r.annulus,n.Arc=r.arc,n.Asterisk=r.asterisk,n.Bezier=r.bezier,n.Circle=r.circle,n.CircleCross=r.circle_cross,n.CircleX=r.circle_x,n.Cross=r.cross,n.Diamond=r.diamond,n.DiamondCross=r.diamond_cross,n.Image=r.image,n.ImageRGBA=r.image_rgba,n.ImageURI=r.image_uri,n.InvertedTriangle=r.inverted_triangle,n.Line=r.line,n.MultiLine=r.multi_line,n.Oval=r.oval,n.Patch=r.patch,n.Patches=r.patches,n.Quad=r.quad,n.Quadratic=r.quadratic,n.Ray=r.ray,n.Rect=r.rect,n.Segment=r.segment,n.Square=r.square,n.SquareCross=r.square_cross,n.SquareX=r.square_x,n.Text=r.text,n.Triangle=r.triangle,n.Wedge=r.wedge,n.X=r.x,n.CategoricalAxis=t("renderer/guide/categorical_axis"),n.DatetimeAxis=t("renderer/guide/datetime_axis"),n.Grid=t("renderer/guide/grid"),n.LinearAxis=t("renderer/guide/linear_axis"),n.BoxSelection=t("renderer/overlay/box_selection"),n.Properties=t("renderer/properties"),n.embed_core=t("server/embed_core"),n.serverrun=t("server/serverrun"),n.serverutils=t("server/serverutils"),n.ColumnDataSource=t("source/column_data_source"),n.AbstractTicker=t("ticking/abstract_ticker"),n.AdaptiveTicker=t("ticking/adaptive_ticker"),n.BasicTicker=t("ticking/basic_ticker"),n.BasicTickFormatter=t("ticking/basic_tick_formatter"),n.CategoricalTicker=t("ticking/categorical_ticker"),n.CategoricalTickFormatter=t("ticking/categorical_tick_formatter"),n.CompositeTicker=t("ticking/composite_ticker"),n.DatetimeTicker=t("ticking/datetime_ticker"),n.DatetimeTickFormatter=t("ticking/datetime_tick_formatter"),n.DaysTicker=t("ticking/days_ticker"),n.MonthsTicker=t("ticking/months_ticker"),n.SingleIntervalTicker=t("ticking/single_interval_ticker"),n.YearsTicker=t("ticking/years_ticker"),n.BoxSelectTool=t("tool/box_select_tool"),n.BoxZoomTool=t("tool/box_zoom_tool"),n.CrosshairTool=t("tool/crosshair_tool"),n.DataRangeBoxSelectTool=t("tool/data_range_box_select_tool"),n.EmbedTool=t("tool/embed_tool"),n.HoverTool=t("tool/hover_tool"),n.PanTool=t("tool/pan_tool"),n.PreviewSaveTool=t("tool/preview_save_tool"),n.ResetTool=t("tool/reset_tool"),n.ResizeTool=t("tool/resize_tool"),n.WheelZoomTool=t("tool/wheel_zoom_tool"),n.ObjectExplorerTool=t("tool/object_explorer_tool"),n.one_object_page=t("server/serverrun").load_one_object,n.server_page=t("server/serverrun").load,n.DataSlider=t("widget/data_slider"),n.HBox=t("widget/hbox"),n.VBox=t("widget/vbox"),n.VBoxModelForm=t("widget/vboxmodelform"),n.TextInput=t("widget/textinput"),n.ObjectExplorer=t("util/object_explorer"),e.Bokeh=n,n
            })}.call(this),e("main")});var _oldJQ=$;jQuery.noConflict(),"undefined"==typeof $&&($=_oldJQ);
            /* END /Users/cyrus/anaconda/lib/python2.7/site-packages/bokeh/server/static/js/bokeh.min.js */
        </script>
        <script type="text/javascript">
            $(function() {
                var all_models = [{"attributes": {"column_names": ["y", "x", "x_lag", "Day", "y_lag"], "doc": null, "selected": [], "discrete_ranges": {}, "cont_ranges": {}, "data": {"y": [5.76, 9.05, 17.26, 41.97, 55.97, 74.91, 62.52, 27.04, 18.77, 31.11, 58.31, 73.13, 63.21, 52.46, 40.07, 27.67, 26.0, 24.32, 21.0, 33.35, 64.67, 94.34, 103.4, 82.74, 65.4, 51.35, 28.24, 23.27, 38.09, 14.97, 24.84, 49.56, 75.93, 104.0, 106.4, 100.6, 84.08, 45.3, 35.37, 35.35, 41.1, 52.62, 120.2, 112.8, 92.14, 65.72, 33.54, 21.14, 17.82, 26.04, 65.61, 76.3, 96.07, 68.84, 54.79, 35.8, 32.48, 24.21, 35.73, 55.5, 93.41, 117.3, 95.02, 85.92, 82.6, 66.08, 63.58, 37.99, 25.6, 23.1, 37.09], "x": [15.65, 53.57, 73.34, 93.93, 115.4, 76.57, 32.83, 23.74, 56.7, 86.37, 121.0, 71.48, 55.78, 31.84, 26.87, 53.24, 65.59, 81.23, 143.9, 237.9, 276.6, 222.2, 137.2, 46.45, 27.46, 41.46, 44.73, 88.42, 105.7, 155.2, 205.5, 312.7, 213.7, 163.4, 85.78, 48.64, 44.49, 63.44, 71.66, 127.7, 206.9, 309.9, 156.5, 63.3, 77.29, 45.11, 57.45, 69.8, 121.7, 185.2, 175.3, 139.0, 77.11, 57.29, 54.79, 75.38, 87.73, 136.4, 290.6, 345.8, 271.6, 156.1, 71.1, 43.86, 30.64, 35.56, 52.03, 37.99, 62.71, 103.9, 187.2], "x_lag": ["NaN", 15.65, 53.57, 73.34, 93.93, 115.4, 76.57, 32.83, 23.74, 56.7, 86.37, 121.0, 71.48, 55.78, 31.84, 26.87, 53.24, 65.59, 81.23, 143.9, 237.9, 276.6, 222.2, 137.2, 46.45, 27.46, 41.46, 44.73, 88.42, 105.7, 155.2, 205.5, 312.7, 213.7, 163.4, 85.78, 48.64, 44.49, 63.44, 71.66, 127.7, 206.9, 309.9, 156.5, 63.3, 77.29, 45.11, 57.45, 69.8, 121.7, 185.2, 175.3, 139.0, 77.11, 57.29, 54.79, 75.38, 87.73, 136.4, 290.6, 345.8, 271.6, 156.1, 71.1, 43.86, 30.64, 35.56, 52.03, 37.99, 62.71, 103.9], "Day": [0.0, 0.52, 1.01, 1.54, 2.04, 2.51, 3.0, 3.46, 3.97, 4.5, 4.95, 5.47, 5.99, 6.46, 6.98, 7.45, 7.95, 8.5, 8.96, 9.49, 10.0, 10.47, 10.96, 11.47, 11.96, 12.46, 12.95, 13.46, 13.98, 14.49, 15.02, 15.51, 16.02, 15.99, 17.0, 17.52, 18.05, 18.51, 19.06, 19.51, 20.05, 20.54, 21.1, 21.56, 22.06, 22.52, 23.02, 23.54, 24.04, 24.58, 25.08, 25.6, 26.04, 26.51, 27.05, 27.55, 28.05, 28.55, 29.04, 29.55, 30.04, 30.59, 30.99, 31.48, 32.03, 32.5, 33.03, 33.49, 34.02, 34.49, 35.08], "y_lag": ["NaN", 5.76, 9.05, 17.26, 41.97, 55.97, 74.91, 62.52, 27.04, 18.77, 31.11, 58.31, 73.13, 63.21, 52.46, 40.07, 27.67, 26.0, 24.32, 21.0, 33.35, 64.67, 94.34, 103.4, 82.74, 65.4, 51.35, 28.24, 23.27, 38.09, 14.97, 24.84, 49.56, 75.93, 104.0, 106.4, 100.6, 84.08, 45.3, 35.37, 35.35, 41.1, 52.62, 120.2, 112.8, 92.14, 65.72, 33.54, 21.14, 17.82, 26.04, 65.61, 76.3, 96.07, 68.84, 54.79, 35.8, 32.48, 24.21, 35.73, 55.5, 93.41, 117.3, 95.02, 85.92, 82.6, 66.08, 63.58, 37.99, 25.6, 23.1]}, "id": "baf2c186-cb0e-4ab5-b2b0-1685a6fca1be"}, "type": "ColumnDataSource", "id": "baf2c186-cb0e-4ab5-b2b0-1685a6fca1be"}, {"attributes": {"column_names": ["x", "y"], "doc": null, "selected": [], "discrete_ranges": {}, "cont_ranges": {}, "data": {"y": [15.65, 53.57, 73.34, 93.93, 115.4, 76.57, 32.83, 23.74, 56.7, 86.37, 121.0, 71.48, 55.78, 31.84, 26.87, 53.24, 65.59, 81.23, 143.9, 237.9, 276.6, 222.2, 137.2, 46.45, 27.46, 41.46, 44.73, 88.42, 105.7, 155.2, 205.5, 312.7, 213.7, 163.4, 85.78, 48.64, 44.49, 63.44, 71.66, 127.7, 206.9, 309.9, 156.5, 63.3, 77.29, 45.11, 57.45, 69.8, 121.7, 185.2, 175.3, 139.0, 77.11, 57.29, 54.79, 75.38, 87.73, 136.4, 290.6, 345.8, 271.6, 156.1, 71.1, 43.86, 30.64, 35.56, 52.03, 37.99, 62.71, 103.9, 187.2], "x": ["NaN", 15.65, 53.57, 73.34, 93.93, 115.4, 76.57, 32.83, 23.74, 56.7, 86.37, 121.0, 71.48, 55.78, 31.84, 26.87, 53.24, 65.59, 81.23, 143.9, 237.9, 276.6, 222.2, 137.2, 46.45, 27.46, 41.46, 44.73, 88.42, 105.7, 155.2, 205.5, 312.7, 213.7, 163.4, 85.78, 48.64, 44.49, 63.44, 71.66, 127.7, 206.9, 309.9, 156.5, 63.3, 77.29, 45.11, 57.45, 69.8, 121.7, 185.2, 175.3, 139.0, 77.11, 57.29, 54.79, 75.38, 87.73, 136.4, 290.6, 345.8, 271.6, 156.1, 71.1, 43.86, 30.64, 35.56, 52.03, 37.99, 62.71, 103.9]}, "id": "d03ef07f-b5a6-49ea-9c5a-9672ed32c780"}, "type": "ColumnDataSource", "id": "d03ef07f-b5a6-49ea-9c5a-9672ed32c780"}, {"attributes": {"sources": [{"source": {"type": "ColumnDataSource", "id": "baf2c186-cb0e-4ab5-b2b0-1685a6fca1be"}, "columns": ["x_lag"]}, {"source": {"type": "ColumnDataSource", "id": "d03ef07f-b5a6-49ea-9c5a-9672ed32c780"}, "columns": ["x"]}], "id": "9e2c1dee-5988-463b-8f26-0f7219f522be", "doc": null}, "type": "DataRange1d", "id": "9e2c1dee-5988-463b-8f26-0f7219f522be"}, {"attributes": {"sources": [{"source": {"type": "ColumnDataSource", "id": "baf2c186-cb0e-4ab5-b2b0-1685a6fca1be"}, "columns": ["x"]}, {"source": {"type": "ColumnDataSource", "id": "d03ef07f-b5a6-49ea-9c5a-9672ed32c780"}, "columns": ["y"]}], "id": "f7fdd979-7848-4006-8709-2858a361d44d", "doc": null}, "type": "DataRange1d", "id": "f7fdd979-7848-4006-8709-2858a361d44d"}, {"attributes": {"doc": null, "id": "6e334cc0-f444-4689-a160-ca00f0ced640"}, "type": "BasicTickFormatter", "id": "6e334cc0-f444-4689-a160-ca00f0ced640"}, {"attributes": {"doc": null, "id": "518c10be-9a7c-44b4-b467-cabe7997248a"}, "type": "BasicTicker", "id": "518c10be-9a7c-44b4-b467-cabe7997248a"}, {"attributes": {"plot": {"type": "Plot", "id": "5a38359c-475e-4c33-9f46-484e4e51f1e3"}, "doc": null, "bounds": "auto", "id": "56a89a65-fa17-4d2b-9b67-c01e95f30c9d", "location": "min", "formatter": {"type": "BasicTickFormatter", "id": "6e334cc0-f444-4689-a160-ca00f0ced640"}, "ticker": {"type": "BasicTicker", "id": "518c10be-9a7c-44b4-b467-cabe7997248a"}, "dimension": 0}, "type": "LinearAxis", "id": "56a89a65-fa17-4d2b-9b67-c01e95f30c9d"}, {"attributes": {"plot": {"type": "Plot", "id": "5a38359c-475e-4c33-9f46-484e4e51f1e3"}, "doc": null, "axis": {"type": "LinearAxis", "id": "56a89a65-fa17-4d2b-9b67-c01e95f30c9d"}, "id": "0c261d51-9d8e-4b73-bdbf-5669b31b39a3", "dimension": 0}, "type": "Grid", "id": "0c261d51-9d8e-4b73-bdbf-5669b31b39a3"}, {"attributes": {"doc": null, "id": "dfd3f11b-5ec6-451d-b483-9d0a66c5a914"}, "type": "BasicTickFormatter", "id": "dfd3f11b-5ec6-451d-b483-9d0a66c5a914"}, {"attributes": {"doc": null, "id": "84013544-dc97-44b9-8e76-a0c28fff312f"}, "type": "BasicTicker", "id": "84013544-dc97-44b9-8e76-a0c28fff312f"}, {"attributes": {"plot": {"type": "Plot", "id": "5a38359c-475e-4c33-9f46-484e4e51f1e3"}, "doc": null, "bounds": "auto", "id": "8250ccc6-0299-45e5-8b19-529a074f59b8", "location": "min", "formatter": {"type": "BasicTickFormatter", "id": "dfd3f11b-5ec6-451d-b483-9d0a66c5a914"}, "ticker": {"type": "BasicTicker", "id": "84013544-dc97-44b9-8e76-a0c28fff312f"}, "dimension": 1}, "type": "LinearAxis", "id": "8250ccc6-0299-45e5-8b19-529a074f59b8"}, {"attributes": {"plot": {"type": "Plot", "id": "5a38359c-475e-4c33-9f46-484e4e51f1e3"}, "id": "43b8c0ae-d981-4a8c-9bad-6945d65b2acb", "doc": null}, "type": "BoxZoomTool", "id": "43b8c0ae-d981-4a8c-9bad-6945d65b2acb"}, {"attributes": {"doc": null, "tool": {"type": "BoxZoomTool", "id": "43b8c0ae-d981-4a8c-9bad-6945d65b2acb"}, "id": "a7d2e15a-7dba-4c43-ad20-a50b2efc1b1e"}, "type": "BoxSelection", "id": "a7d2e15a-7dba-4c43-ad20-a50b2efc1b1e"}, {"attributes": {"data_source": {"type": "ColumnDataSource", "id": "baf2c186-cb0e-4ab5-b2b0-1685a6fca1be"}, "server_data_source": null, "doc": null, "nonselection_glyphspec": {"line_color": {"value": "#1f77b4"}, "angle_units": "deg", "fill_color": {"value": "#1f77b4"}, "visible": null, "line_dash_offset": 0, "line_join": "miter", "size": {"units": "screen", "value": 6}, "line_alpha": {"units": "data", "value": 0.1}, "radius_units": "screen", "end_angle_units": "deg", "valign": null, "length_units": "screen", "start_angle_units": "deg", "line_cap": "butt", "line_dash": [], "line_width": {"units": "data", "value": 0}, "type": "circle", "fill_alpha": {"units": "data", "value": 0.1}, "halign": null, "y": {"units": "data", "field": "x"}, "x": {"units": "data", "field": "x_lag"}, "margin": null}, "xdata_range": null, "ydata_range": null, "glyphspec": {"line_color": {"value": "#66c2a5"}, "line_width": {"units": "data", "value": 0}, "fill_color": {"value": "#66c2a5"}, "line_alpha": {"units": "data", "value": 1.0}, "fill_alpha": {"units": "data", "value": 1.0}, "y": {"units": "data", "field": "x"}, "x": {"units": "data", "field": "x_lag"}, "type": "circle", "size": {"units": "screen", "value": 6}}, "id": "27fe8cc0-c878-47b6-ad0f-83bc2022306c"}, "type": "Glyph", "id": "27fe8cc0-c878-47b6-ad0f-83bc2022306c"}, {"attributes": {"data_source": {"type": "ColumnDataSource", "id": "d03ef07f-b5a6-49ea-9c5a-9672ed32c780"}, "server_data_source": null, "doc": null, "nonselection_glyphspec": {"line_color": {"value": "#1f77b4"}, "line_width": {"units": "data", "value": 2.5}, "angle_units": "deg", "type": "line", "y": {"units": "data", "field": "y"}, "x": {"units": "data", "field": "x"}, "line_alpha": {"units": "data", "value": 0.1}, "start_angle_units": "deg", "valign": null, "radius_units": "screen", "visible": null, "end_angle_units": "deg", "line_dash_offset": 0, "line_cap": "butt", "line_dash": [], "length_units": "screen", "margin": null, "line_join": "miter", "halign": null}, "xdata_range": null, "ydata_range": null, "glyphspec": {"line_color": {"value": "#66c2a5"}, "line_width": {"units": "data", "value": 2.5}, "line_alpha": {"units": "data", "value": 0.3}, "y": {"units": "data", "field": "y"}, "x": {"units": "data", "field": "x"}, "type": "line"}, "id": "32b595cc-f98d-4636-99a3-1d04685283b0"}, "type": "Glyph", "id": "32b595cc-f98d-4636-99a3-1d04685283b0"}, {"attributes": {"plot": null, "doc": null, "renderers": [{"type": "Glyph", "id": "27fe8cc0-c878-47b6-ad0f-83bc2022306c"}, {"type": "Glyph", "id": "32b595cc-f98d-4636-99a3-1d04685283b0"}], "id": "bab484bc-6e35-4336-af2e-086527176896"}, "type": "BoxSelectTool", "id": "bab484bc-6e35-4336-af2e-086527176896"}, {"attributes": {"doc": null, "tool": {"type": "BoxSelectTool", "id": "bab484bc-6e35-4336-af2e-086527176896"}, "id": "770eca1d-30c1-410d-9db8-bb7f2d4c507f"}, "type": "BoxSelection", "id": "770eca1d-30c1-410d-9db8-bb7f2d4c507f"}, {"attributes": {"plot": {"type": "Plot", "id": "5a38359c-475e-4c33-9f46-484e4e51f1e3"}, "dimensions": ["width", "height"], "doc": null, "id": "89622c5a-df7a-4804-aed6-052da8d6c79c"}, "type": "PanTool", "id": "89622c5a-df7a-4804-aed6-052da8d6c79c"}, {"attributes": {"plot": {"type": "Plot", "id": "5a38359c-475e-4c33-9f46-484e4e51f1e3"}, "dimensions": ["width", "height"], "doc": null, "id": "36fde2f4-0de0-4109-ae41-42cf6c587088"}, "type": "WheelZoomTool", "id": "36fde2f4-0de0-4109-ae41-42cf6c587088"}, {"attributes": {"plot": {"type": "Plot", "id": "5a38359c-475e-4c33-9f46-484e4e51f1e3"}, "id": "c6e05367-ada7-4ec5-9cdb-e9c41c597f9e", "doc": null}, "type": "ResetTool", "id": "c6e05367-ada7-4ec5-9cdb-e9c41c597f9e"}, {"attributes": {"plot": {"type": "Plot", "id": "5a38359c-475e-4c33-9f46-484e4e51f1e3"}, "id": "ca3738a6-6532-4622-8cde-42163b8fb2f4", "doc": null}, "type": "PreviewSaveTool", "id": "ca3738a6-6532-4622-8cde-42163b8fb2f4"}, {"attributes": {"outer_height": 600, "x_range": {"type": "DataRange1d", "id": "9e2c1dee-5988-463b-8f26-0f7219f522be"}, "y_range": {"type": "DataRange1d", "id": "f7fdd979-7848-4006-8709-2858a361d44d"}, "outer_width": 600, "renderers": [{"type": "LinearAxis", "id": "56a89a65-fa17-4d2b-9b67-c01e95f30c9d"}, {"type": "Grid", "id": "0c261d51-9d8e-4b73-bdbf-5669b31b39a3"}, {"type": "LinearAxis", "id": "8250ccc6-0299-45e5-8b19-529a074f59b8"}, {"type": "Grid", "id": "c99035ef-b31c-433e-8677-9efac8b80466"}, {"type": "BoxSelection", "id": "a7d2e15a-7dba-4c43-ad20-a50b2efc1b1e"}, {"type": "BoxSelection", "id": "770eca1d-30c1-410d-9db8-bb7f2d4c507f"}, {"type": "Glyph", "id": "27fe8cc0-c878-47b6-ad0f-83bc2022306c"}, {"type": "Glyph", "id": "32b595cc-f98d-4636-99a3-1d04685283b0"}], "id": "5a38359c-475e-4c33-9f46-484e4e51f1e3", "data_sources": [], "doc": null, "canvas_height": 600, "title": "Reconstructed Manifold (Paramecium)", "tools": [{"type": "PanTool", "id": "89622c5a-df7a-4804-aed6-052da8d6c79c"}, {"type": "WheelZoomTool", "id": "36fde2f4-0de0-4109-ae41-42cf6c587088"}, {"type": "BoxZoomTool", "id": "43b8c0ae-d981-4a8c-9bad-6945d65b2acb"}, {"type": "ResetTool", "id": "c6e05367-ada7-4ec5-9cdb-e9c41c597f9e"}, {"type": "PreviewSaveTool", "id": "ca3738a6-6532-4622-8cde-42163b8fb2f4"}, {"type": "BoxSelectTool", "id": "bab484bc-6e35-4336-af2e-086527176896"}], "canvas_width": 600}, "type": "Plot", "id": "5a38359c-475e-4c33-9f46-484e4e51f1e3"}, {"attributes": {"plot": {"type": "Plot", "id": "5a38359c-475e-4c33-9f46-484e4e51f1e3"}, "doc": null, "axis": {"type": "LinearAxis", "id": "8250ccc6-0299-45e5-8b19-529a074f59b8"}, "id": "c99035ef-b31c-433e-8677-9efac8b80466", "dimension": 1}, "type": "Grid", "id": "c99035ef-b31c-433e-8677-9efac8b80466"}, {"attributes": {"doc": null, "id": "bf1177c7-44a5-4f96-bddd-f46723a4dc40"}, "type": "BasicTickFormatter", "id": "bf1177c7-44a5-4f96-bddd-f46723a4dc40"}, {"attributes": {"data_source": {"type": "ColumnDataSource", "id": "baf2c186-cb0e-4ab5-b2b0-1685a6fca1be"}, "server_data_source": null, "doc": null, "nonselection_glyphspec": {"line_color": {"value": "#1f77b4"}, "angle_units": "deg", "fill_color": {"value": "#1f77b4"}, "visible": null, "line_dash_offset": 0, "line_join": "miter", "size": {"units": "screen", "value": 6}, "line_alpha": {"units": "data", "value": 0.1}, "radius_units": "screen", "end_angle_units": "deg", "valign": null, "length_units": "screen", "start_angle_units": "deg", "line_cap": "butt", "line_dash": [], "line_width": {"units": "data", "value": 0}, "type": "circle", "fill_alpha": {"units": "data", "value": 0.1}, "halign": null, "y": {"units": "data", "field": "x"}, "x": {"units": "data", "field": "Day"}, "margin": null}, "xdata_range": null, "ydata_range": null, "glyphspec": {"line_color": {"value": "#66c2a5"}, "line_width": {"units": "data", "value": 0}, "fill_color": {"value": "#66c2a5"}, "line_alpha": {"units": "data", "value": 1.0}, "fill_alpha": {"units": "data", "value": 1.0}, "y": {"units": "data", "field": "x"}, "x": {"units": "data", "field": "Day"}, "type": "circle", "size": {"units": "screen", "value": 6}}, "id": "c22f6c26-94e4-4b0f-aee2-6fd969dea54d"}, "type": "Glyph", "id": "c22f6c26-94e4-4b0f-aee2-6fd969dea54d"}, {"attributes": {"column_names": ["x", "y"], "doc": null, "selected": [], "discrete_ranges": {}, "cont_ranges": {}, "data": {"y": [15.65, 53.57, 73.34, 93.93, 115.4, 76.57, 32.83, 23.74, 56.7, 86.37, 121.0, 71.48, 55.78, 31.84, 26.87, 53.24, 65.59, 81.23, 143.9, 237.9, 276.6, 222.2, 137.2, 46.45, 27.46, 41.46, 44.73, 88.42, 105.7, 155.2, 205.5, 312.7, 213.7, 163.4, 85.78, 48.64, 44.49, 63.44, 71.66, 127.7, 206.9, 309.9, 156.5, 63.3, 77.29, 45.11, 57.45, 69.8, 121.7, 185.2, 175.3, 139.0, 77.11, 57.29, 54.79, 75.38, 87.73, 136.4, 290.6, 345.8, 271.6, 156.1, 71.1, 43.86, 30.64, 35.56, 52.03, 37.99, 62.71, 103.9, 187.2], "x": [0.0, 0.52, 1.01, 1.54, 2.04, 2.51, 3.0, 3.46, 3.97, 4.5, 4.95, 5.47, 5.99, 6.46, 6.98, 7.45, 7.95, 8.5, 8.96, 9.49, 10.0, 10.47, 10.96, 11.47, 11.96, 12.46, 12.95, 13.46, 13.98, 14.49, 15.02, 15.51, 16.02, 15.99, 17.0, 17.52, 18.05, 18.51, 19.06, 19.51, 20.05, 20.54, 21.1, 21.56, 22.06, 22.52, 23.02, 23.54, 24.04, 24.58, 25.08, 25.6, 26.04, 26.51, 27.05, 27.55, 28.05, 28.55, 29.04, 29.55, 30.04, 30.59, 30.99, 31.48, 32.03, 32.5, 33.03, 33.49, 34.02, 34.49, 35.08]}, "id": "33880c3b-fe1d-47be-8dde-f99961484048"}, "type": "ColumnDataSource", "id": "33880c3b-fe1d-47be-8dde-f99961484048"}, {"attributes": {"data_source": {"type": "ColumnDataSource", "id": "33880c3b-fe1d-47be-8dde-f99961484048"}, "server_data_source": null, "doc": null, "nonselection_glyphspec": {"line_color": {"value": "#1f77b4"}, "line_width": {"units": "data", "value": 2.5}, "angle_units": "deg", "type": "line", "y": {"units": "data", "field": "y"}, "x": {"units": "data", "field": "x"}, "line_alpha": {"units": "data", "value": 0.1}, "start_angle_units": "deg", "valign": null, "radius_units": "screen", "visible": null, "end_angle_units": "deg", "line_dash_offset": 0, "line_cap": "butt", "line_dash": [], "length_units": "screen", "margin": null, "line_join": "miter", "halign": null}, "xdata_range": null, "ydata_range": null, "glyphspec": {"line_color": {"value": "#66c2a5"}, "line_width": {"units": "data", "value": 2.5}, "line_alpha": {"units": "data", "value": 0.3}, "y": {"units": "data", "field": "y"}, "x": {"units": "data", "field": "x"}, "type": "line"}, "id": "d2cc1f6a-7485-4e2f-aedb-d228e4ca9584"}, "type": "Glyph", "id": "d2cc1f6a-7485-4e2f-aedb-d228e4ca9584"}, {"attributes": {"plot": null, "doc": null, "renderers": [{"type": "Glyph", "id": "c22f6c26-94e4-4b0f-aee2-6fd969dea54d"}, {"type": "Glyph", "id": "d2cc1f6a-7485-4e2f-aedb-d228e4ca9584"}], "id": "9af42a4f-4139-469e-9874-5aca3e70d471"}, "type": "BoxSelectTool", "id": "9af42a4f-4139-469e-9874-5aca3e70d471"}, {"attributes": {"doc": null, "tool": {"type": "BoxSelectTool", "id": "9af42a4f-4139-469e-9874-5aca3e70d471"}, "id": "6164222e-8f6d-4e37-94e1-1e788d52a0c5"}, "type": "BoxSelection", "id": "6164222e-8f6d-4e37-94e1-1e788d52a0c5"}, {"attributes": {"sources": [{"source": {"type": "ColumnDataSource", "id": "baf2c186-cb0e-4ab5-b2b0-1685a6fca1be"}, "columns": ["Day"]}, {"source": {"type": "ColumnDataSource", "id": "33880c3b-fe1d-47be-8dde-f99961484048"}, "columns": ["x"]}], "id": "07c24d34-9479-4731-8ff2-422eac48799c", "doc": null}, "type": "DataRange1d", "id": "07c24d34-9479-4731-8ff2-422eac48799c"}, {"attributes": {"sources": [{"source": {"type": "ColumnDataSource", "id": "baf2c186-cb0e-4ab5-b2b0-1685a6fca1be"}, "columns": ["x"]}, {"source": {"type": "ColumnDataSource", "id": "33880c3b-fe1d-47be-8dde-f99961484048"}, "columns": ["y"]}], "id": "8d722003-b3be-4f09-b538-91082755fdb6", "doc": null}, "type": "DataRange1d", "id": "8d722003-b3be-4f09-b538-91082755fdb6"}, {"attributes": {"doc": null, "id": "5faa67ce-f557-46d3-b9b3-b33c30da2380"}, "type": "BasicTickFormatter", "id": "5faa67ce-f557-46d3-b9b3-b33c30da2380"}, {"attributes": {"doc": null, "id": "23c521dd-84b4-4be5-b49d-d8aebf7e3e88"}, "type": "BasicTicker", "id": "23c521dd-84b4-4be5-b49d-d8aebf7e3e88"}, {"attributes": {"plot": {"type": "Plot", "id": "f36e567d-ee0e-48f8-8f1e-598c6c290480"}, "doc": null, "bounds": "auto", "id": "2f02c9f5-9f1b-40ac-b133-81bb73f5c70b", "location": "min", "axis_label": "Day", "formatter": {"type": "BasicTickFormatter", "id": "5faa67ce-f557-46d3-b9b3-b33c30da2380"}, "ticker": {"type": "BasicTicker", "id": "23c521dd-84b4-4be5-b49d-d8aebf7e3e88"}, "dimension": 0}, "type": "LinearAxis", "id": "2f02c9f5-9f1b-40ac-b133-81bb73f5c70b"}, {"attributes": {"plot": {"type": "Plot", "id": "f36e567d-ee0e-48f8-8f1e-598c6c290480"}, "doc": null, "axis": {"type": "LinearAxis", "id": "2f02c9f5-9f1b-40ac-b133-81bb73f5c70b"}, "id": "a8022755-22be-40f4-b10f-6201d968b847", "dimension": 0}, "type": "Grid", "id": "a8022755-22be-40f4-b10f-6201d968b847"}, {"attributes": {"doc": null, "id": "96946ad6-a9d3-425c-843b-c0934337b61e"}, "type": "BasicTickFormatter", "id": "96946ad6-a9d3-425c-843b-c0934337b61e"}, {"attributes": {"doc": null, "id": "04337777-1cb5-4465-b62a-41c40c799ade"}, "type": "BasicTicker", "id": "04337777-1cb5-4465-b62a-41c40c799ade"}, {"attributes": {"plot": {"type": "Plot", "id": "f36e567d-ee0e-48f8-8f1e-598c6c290480"}, "doc": null, "bounds": "auto", "id": "a9d6ccbf-7688-4c1b-836a-2e7f274f29f8", "location": "min", "axis_label": "Abundance", "formatter": {"type": "BasicTickFormatter", "id": "96946ad6-a9d3-425c-843b-c0934337b61e"}, "ticker": {"type": "BasicTicker", "id": "04337777-1cb5-4465-b62a-41c40c799ade"}, "dimension": 1}, "type": "LinearAxis", "id": "a9d6ccbf-7688-4c1b-836a-2e7f274f29f8"}, {"attributes": {"plot": {"type": "Plot", "id": "f36e567d-ee0e-48f8-8f1e-598c6c290480"}, "id": "246ec2af-a32a-40ae-bc02-e1ef82d54f65", "doc": null}, "type": "BoxZoomTool", "id": "246ec2af-a32a-40ae-bc02-e1ef82d54f65"}, {"attributes": {"doc": null, "tool": {"type": "BoxZoomTool", "id": "246ec2af-a32a-40ae-bc02-e1ef82d54f65"}, "id": "11a68c18-5e16-47f0-aac7-1cc14733eaa5"}, "type": "BoxSelection", "id": "11a68c18-5e16-47f0-aac7-1cc14733eaa5"}, {"attributes": {"plot": {"type": "Plot", "id": "f36e567d-ee0e-48f8-8f1e-598c6c290480"}, "dimensions": ["width", "height"], "doc": null, "id": "53cff020-0cb5-4e9f-98e6-aaba4e190948"}, "type": "PanTool", "id": "53cff020-0cb5-4e9f-98e6-aaba4e190948"}, {"attributes": {"plot": {"type": "Plot", "id": "f36e567d-ee0e-48f8-8f1e-598c6c290480"}, "dimensions": ["width", "height"], "doc": null, "id": "3248d62c-4218-49e6-9901-22a23ec73407"}, "type": "WheelZoomTool", "id": "3248d62c-4218-49e6-9901-22a23ec73407"}, {"attributes": {"plot": {"type": "Plot", "id": "f36e567d-ee0e-48f8-8f1e-598c6c290480"}, "id": "bc55c44c-4402-40bf-890b-ec427b01024f", "doc": null}, "type": "ResetTool", "id": "bc55c44c-4402-40bf-890b-ec427b01024f"}, {"attributes": {"plot": {"type": "Plot", "id": "f36e567d-ee0e-48f8-8f1e-598c6c290480"}, "id": "44b8e573-d75d-4494-a37f-f1342868c086", "doc": null}, "type": "PreviewSaveTool", "id": "44b8e573-d75d-4494-a37f-f1342868c086"}, {"attributes": {"outer_height": 600, "x_range": {"type": "DataRange1d", "id": "07c24d34-9479-4731-8ff2-422eac48799c"}, "y_range": {"type": "DataRange1d", "id": "8d722003-b3be-4f09-b538-91082755fdb6"}, "outer_width": 600, "renderers": [{"type": "LinearAxis", "id": "2f02c9f5-9f1b-40ac-b133-81bb73f5c70b"}, {"type": "Grid", "id": "a8022755-22be-40f4-b10f-6201d968b847"}, {"type": "LinearAxis", "id": "a9d6ccbf-7688-4c1b-836a-2e7f274f29f8"}, {"type": "Grid", "id": "283c00a6-d850-4f0d-9826-32834a81465c"}, {"type": "BoxSelection", "id": "11a68c18-5e16-47f0-aac7-1cc14733eaa5"}, {"type": "BoxSelection", "id": "6164222e-8f6d-4e37-94e1-1e788d52a0c5"}, {"type": "Glyph", "id": "c22f6c26-94e4-4b0f-aee2-6fd969dea54d"}, {"type": "Glyph", "id": "d2cc1f6a-7485-4e2f-aedb-d228e4ca9584"}], "id": "f36e567d-ee0e-48f8-8f1e-598c6c290480", "data_sources": [], "doc": null, "canvas_height": 600, "title": "Time Series (Paramecium)", "tools": [{"type": "PanTool", "id": "53cff020-0cb5-4e9f-98e6-aaba4e190948"}, {"type": "WheelZoomTool", "id": "3248d62c-4218-49e6-9901-22a23ec73407"}, {"type": "BoxZoomTool", "id": "246ec2af-a32a-40ae-bc02-e1ef82d54f65"}, {"type": "ResetTool", "id": "bc55c44c-4402-40bf-890b-ec427b01024f"}, {"type": "PreviewSaveTool", "id": "44b8e573-d75d-4494-a37f-f1342868c086"}, {"type": "BoxSelectTool", "id": "9af42a4f-4139-469e-9874-5aca3e70d471"}], "canvas_width": 600}, "type": "Plot", "id": "f36e567d-ee0e-48f8-8f1e-598c6c290480"}, {"attributes": {"plot": {"type": "Plot", "id": "f36e567d-ee0e-48f8-8f1e-598c6c290480"}, "doc": null, "axis": {"type": "LinearAxis", "id": "a9d6ccbf-7688-4c1b-836a-2e7f274f29f8"}, "id": "283c00a6-d850-4f0d-9826-32834a81465c", "dimension": 1}, "type": "Grid", "id": "283c00a6-d850-4f0d-9826-32834a81465c"}, {"attributes": {"doc": null, "id": "e551ecc9-0ec3-466b-8ff1-adbec8fde892"}, "type": "BasicTicker", "id": "e551ecc9-0ec3-466b-8ff1-adbec8fde892"}, {"attributes": {"doc": null, "id": "11982716-cf49-4452-a6f6-e970a3c04247"}, "type": "BasicTicker", "id": "11982716-cf49-4452-a6f6-e970a3c04247"}, {"attributes": {"column_names": ["x", "y"], "doc": null, "selected": [], "discrete_ranges": {}, "cont_ranges": {}, "data": {"y": [5.76, 9.05, 17.26, 41.97, 55.97, 74.91, 62.52, 27.04, 18.77, 31.11, 58.31, 73.13, 63.21, 52.46, 40.07, 27.67, 26.0, 24.32, 21.0, 33.35, 64.67, 94.34, 103.4, 82.74, 65.4, 51.35, 28.24, 23.27, 38.09, 14.97, 24.84, 49.56, 75.93, 104.0, 106.4, 100.6, 84.08, 45.3, 35.37, 35.35, 41.1, 52.62, 120.2, 112.8, 92.14, 65.72, 33.54, 21.14, 17.82, 26.04, 65.61, 76.3, 96.07, 68.84, 54.79, 35.8, 32.48, 24.21, 35.73, 55.5, 93.41, 117.3, 95.02, 85.92, 82.6, 66.08, 63.58, 37.99, 25.6, 23.1, 37.09], "x": [15.65, 53.57, 73.34, 93.93, 115.4, 76.57, 32.83, 23.74, 56.7, 86.37, 121.0, 71.48, 55.78, 31.84, 26.87, 53.24, 65.59, 81.23, 143.9, 237.9, 276.6, 222.2, 137.2, 46.45, 27.46, 41.46, 44.73, 88.42, 105.7, 155.2, 205.5, 312.7, 213.7, 163.4, 85.78, 48.64, 44.49, 63.44, 71.66, 127.7, 206.9, 309.9, 156.5, 63.3, 77.29, 45.11, 57.45, 69.8, 121.7, 185.2, 175.3, 139.0, 77.11, 57.29, 54.79, 75.38, 87.73, 136.4, 290.6, 345.8, 271.6, 156.1, 71.1, 43.86, 30.64, 35.56, 52.03, 37.99, 62.71, 103.9, 187.2]}, "id": "0cacb2d3-5848-4542-bfa7-d2d829ea9597"}, "type": "ColumnDataSource", "id": "0cacb2d3-5848-4542-bfa7-d2d829ea9597"}, {"attributes": {"sources": [{"source": {"type": "ColumnDataSource", "id": "baf2c186-cb0e-4ab5-b2b0-1685a6fca1be"}, "columns": ["x"]}, {"source": {"type": "ColumnDataSource", "id": "0cacb2d3-5848-4542-bfa7-d2d829ea9597"}, "columns": ["x"]}], "id": "0904f7b1-0d07-4102-a511-b7dce7ede95c", "doc": null}, "type": "DataRange1d", "id": "0904f7b1-0d07-4102-a511-b7dce7ede95c"}, {"attributes": {"sources": [{"source": {"type": "ColumnDataSource", "id": "baf2c186-cb0e-4ab5-b2b0-1685a6fca1be"}, "columns": ["y"]}, {"source": {"type": "ColumnDataSource", "id": "0cacb2d3-5848-4542-bfa7-d2d829ea9597"}, "columns": ["y"]}], "id": "6f27339b-a880-46c1-8f1c-68ac382eaa4a", "doc": null}, "type": "DataRange1d", "id": "6f27339b-a880-46c1-8f1c-68ac382eaa4a"}, {"attributes": {"doc": null, "id": "a6f2c9e2-fec0-4f99-864f-a2592c75a614"}, "type": "BasicTickFormatter", "id": "a6f2c9e2-fec0-4f99-864f-a2592c75a614"}, {"attributes": {"doc": null, "id": "fe9302c8-4d79-439c-85bc-a1a9167a5d3f"}, "type": "BasicTicker", "id": "fe9302c8-4d79-439c-85bc-a1a9167a5d3f"}, {"attributes": {"plot": {"type": "Plot", "id": "6d05e0f8-fe0f-45ac-96fa-4488013c49ee"}, "doc": null, "bounds": "auto", "id": "323e78c3-c2c1-48f3-9954-c94e9ff7c3e6", "location": "min", "axis_label": "Paramecium abundance", "formatter": {"type": "BasicTickFormatter", "id": "a6f2c9e2-fec0-4f99-864f-a2592c75a614"}, "ticker": {"type": "BasicTicker", "id": "fe9302c8-4d79-439c-85bc-a1a9167a5d3f"}, "dimension": 0}, "type": "LinearAxis", "id": "323e78c3-c2c1-48f3-9954-c94e9ff7c3e6"}, {"attributes": {"plot": {"type": "Plot", "id": "6d05e0f8-fe0f-45ac-96fa-4488013c49ee"}, "doc": null, "axis": {"type": "LinearAxis", "id": "323e78c3-c2c1-48f3-9954-c94e9ff7c3e6"}, "id": "942c43cf-9798-4b08-91b5-0b7f677417fd", "dimension": 0}, "type": "Grid", "id": "942c43cf-9798-4b08-91b5-0b7f677417fd"}, {"attributes": {"plot": {"type": "Plot", "id": "6d05e0f8-fe0f-45ac-96fa-4488013c49ee"}, "doc": null, "axis": {"type": "LinearAxis", "id": "f8477fe2-173a-4112-a014-115775ab0735"}, "id": "0ba58dff-5c4f-4139-860e-999e22768ff4", "dimension": 1}, "type": "Grid", "id": "0ba58dff-5c4f-4139-860e-999e22768ff4"}, {"attributes": {"plot": {"type": "Plot", "id": "6d05e0f8-fe0f-45ac-96fa-4488013c49ee"}, "id": "7c90ddab-e7d7-4700-9522-9dc09fa10868", "doc": null}, "type": "BoxZoomTool", "id": "7c90ddab-e7d7-4700-9522-9dc09fa10868"}, {"attributes": {"doc": null, "tool": {"type": "BoxZoomTool", "id": "7c90ddab-e7d7-4700-9522-9dc09fa10868"}, "id": "728e26cc-a4b8-43b8-8c5e-a3ccd1318f98"}, "type": "BoxSelection", "id": "728e26cc-a4b8-43b8-8c5e-a3ccd1318f98"}, {"attributes": {"data_source": {"type": "ColumnDataSource", "id": "baf2c186-cb0e-4ab5-b2b0-1685a6fca1be"}, "server_data_source": null, "doc": null, "nonselection_glyphspec": {"line_color": {"value": "#1f77b4"}, "angle_units": "deg", "fill_color": {"value": "#1f77b4"}, "visible": null, "line_dash_offset": 0, "line_join": "miter", "size": {"units": "screen", "value": 6}, "line_alpha": {"units": "data", "value": 0.1}, "radius_units": "screen", "end_angle_units": "deg", "valign": null, "length_units": "screen", "start_angle_units": "deg", "line_cap": "butt", "line_dash": [], "line_width": {"units": "data", "value": 0}, "type": "circle", "fill_alpha": {"units": "data", "value": 0.1}, "halign": null, "y": {"units": "data", "field": "y"}, "x": {"units": "data", "field": "x"}, "margin": null}, "xdata_range": null, "ydata_range": null, "glyphspec": {"line_color": {"value": "#8da0cb"}, "line_width": {"units": "data", "value": 0}, "fill_color": {"value": "#8da0cb"}, "line_alpha": {"units": "data", "value": 1.0}, "fill_alpha": {"units": "data", "value": 1.0}, "y": {"units": "data", "field": "y"}, "x": {"units": "data", "field": "x"}, "type": "circle", "size": {"units": "screen", "value": 6}}, "id": "e9fa318d-77b6-4179-be20-0fb256c38ecc"}, "type": "Glyph", "id": "e9fa318d-77b6-4179-be20-0fb256c38ecc"}, {"attributes": {"data_source": {"type": "ColumnDataSource", "id": "0cacb2d3-5848-4542-bfa7-d2d829ea9597"}, "server_data_source": null, "doc": null, "nonselection_glyphspec": {"line_color": {"value": "#1f77b4"}, "line_width": {"units": "data", "value": 2.5}, "angle_units": "deg", "type": "line", "y": {"units": "data", "field": "y"}, "x": {"units": "data", "field": "x"}, "line_alpha": {"units": "data", "value": 0.1}, "start_angle_units": "deg", "valign": null, "radius_units": "screen", "visible": null, "end_angle_units": "deg", "line_dash_offset": 0, "line_cap": "butt", "line_dash": [], "length_units": "screen", "margin": null, "line_join": "miter", "halign": null}, "xdata_range": null, "ydata_range": null, "glyphspec": {"line_color": {"value": "#8da0cb"}, "line_width": {"units": "data", "value": 2.5}, "line_alpha": {"units": "data", "value": 0.3}, "y": {"units": "data", "field": "y"}, "x": {"units": "data", "field": "x"}, "type": "line"}, "id": "64093086-4382-407a-b13a-cccd4b47f93a"}, "type": "Glyph", "id": "64093086-4382-407a-b13a-cccd4b47f93a"}, {"attributes": {"plot": null, "doc": null, "renderers": [{"type": "Glyph", "id": "e9fa318d-77b6-4179-be20-0fb256c38ecc"}, {"type": "Glyph", "id": "64093086-4382-407a-b13a-cccd4b47f93a"}], "id": "6554f26b-87a8-4851-b49b-1f5d78370b42"}, "type": "BoxSelectTool", "id": "6554f26b-87a8-4851-b49b-1f5d78370b42"}, {"attributes": {"doc": null, "tool": {"type": "BoxSelectTool", "id": "6554f26b-87a8-4851-b49b-1f5d78370b42"}, "id": "43dc9544-52d9-4bd2-bd0b-b4a90d1f7dd4"}, "type": "BoxSelection", "id": "43dc9544-52d9-4bd2-bd0b-b4a90d1f7dd4"}, {"attributes": {"plot": {"type": "Plot", "id": "6d05e0f8-fe0f-45ac-96fa-4488013c49ee"}, "dimensions": ["width", "height"], "doc": null, "id": "a84619a3-6099-42a0-96a0-06ffa11c76d1"}, "type": "PanTool", "id": "a84619a3-6099-42a0-96a0-06ffa11c76d1"}, {"attributes": {"plot": {"type": "Plot", "id": "6d05e0f8-fe0f-45ac-96fa-4488013c49ee"}, "dimensions": ["width", "height"], "doc": null, "id": "9480c166-5f6d-4e7c-a2c7-2e1453e46f98"}, "type": "WheelZoomTool", "id": "9480c166-5f6d-4e7c-a2c7-2e1453e46f98"}, {"attributes": {"plot": {"type": "Plot", "id": "6d05e0f8-fe0f-45ac-96fa-4488013c49ee"}, "id": "4800365a-bf4d-44dd-9660-bbfc347a90f7", "doc": null}, "type": "ResetTool", "id": "4800365a-bf4d-44dd-9660-bbfc347a90f7"}, {"attributes": {"plot": {"type": "Plot", "id": "6d05e0f8-fe0f-45ac-96fa-4488013c49ee"}, "id": "ffa09406-78b1-437e-aa87-58e810b91997", "doc": null}, "type": "PreviewSaveTool", "id": "ffa09406-78b1-437e-aa87-58e810b91997"}, {"attributes": {"outer_height": 600, "x_range": {"type": "DataRange1d", "id": "0904f7b1-0d07-4102-a511-b7dce7ede95c"}, "y_range": {"type": "DataRange1d", "id": "6f27339b-a880-46c1-8f1c-68ac382eaa4a"}, "outer_width": 600, "renderers": [{"type": "LinearAxis", "id": "323e78c3-c2c1-48f3-9954-c94e9ff7c3e6"}, {"type": "Grid", "id": "942c43cf-9798-4b08-91b5-0b7f677417fd"}, {"type": "LinearAxis", "id": "f8477fe2-173a-4112-a014-115775ab0735"}, {"type": "Grid", "id": "0ba58dff-5c4f-4139-860e-999e22768ff4"}, {"type": "BoxSelection", "id": "728e26cc-a4b8-43b8-8c5e-a3ccd1318f98"}, {"type": "BoxSelection", "id": "43dc9544-52d9-4bd2-bd0b-b4a90d1f7dd4"}, {"type": "Glyph", "id": "e9fa318d-77b6-4179-be20-0fb256c38ecc"}, {"type": "Glyph", "id": "64093086-4382-407a-b13a-cccd4b47f93a"}], "id": "6d05e0f8-fe0f-45ac-96fa-4488013c49ee", "data_sources": [], "doc": null, "canvas_height": 600, "title": "Full Manifold", "tools": [{"type": "PanTool", "id": "a84619a3-6099-42a0-96a0-06ffa11c76d1"}, {"type": "WheelZoomTool", "id": "9480c166-5f6d-4e7c-a2c7-2e1453e46f98"}, {"type": "BoxZoomTool", "id": "7c90ddab-e7d7-4700-9522-9dc09fa10868"}, {"type": "ResetTool", "id": "4800365a-bf4d-44dd-9660-bbfc347a90f7"}, {"type": "PreviewSaveTool", "id": "ffa09406-78b1-437e-aa87-58e810b91997"}, {"type": "BoxSelectTool", "id": "6554f26b-87a8-4851-b49b-1f5d78370b42"}], "canvas_width": 600}, "type": "Plot", "id": "6d05e0f8-fe0f-45ac-96fa-4488013c49ee"}, {"attributes": {"plot": {"type": "Plot", "id": "6d05e0f8-fe0f-45ac-96fa-4488013c49ee"}, "doc": null, "bounds": "auto", "id": "f8477fe2-173a-4112-a014-115775ab0735", "location": "min", "axis_label": "Didinium abundance", "formatter": {"type": "BasicTickFormatter", "id": "bf1177c7-44a5-4f96-bddd-f46723a4dc40"}, "ticker": {"type": "BasicTicker", "id": "11982716-cf49-4452-a6f6-e970a3c04247"}, "dimension": 1}, "type": "LinearAxis", "id": "f8477fe2-173a-4112-a014-115775ab0735"}, {"attributes": {"column_names": ["x", "y"], "doc": null, "selected": [], "discrete_ranges": {}, "cont_ranges": {}, "data": {"y": [5.76, 9.05, 17.26, 41.97, 55.97, 74.91, 62.52, 27.04, 18.77, 31.11, 58.31, 73.13, 63.21, 52.46, 40.07, 27.67, 26.0, 24.32, 21.0, 33.35, 64.67, 94.34, 103.4, 82.74, 65.4, 51.35, 28.24, 23.27, 38.09, 14.97, 24.84, 49.56, 75.93, 104.0, 106.4, 100.6, 84.08, 45.3, 35.37, 35.35, 41.1, 52.62, 120.2, 112.8, 92.14, 65.72, 33.54, 21.14, 17.82, 26.04, 65.61, 76.3, 96.07, 68.84, 54.79, 35.8, 32.48, 24.21, 35.73, 55.5, 93.41, 117.3, 95.02, 85.92, 82.6, 66.08, 63.58, 37.99, 25.6, 23.1, 37.09], "x": [0.0, 0.52, 1.01, 1.54, 2.04, 2.51, 3.0, 3.46, 3.97, 4.5, 4.95, 5.47, 5.99, 6.46, 6.98, 7.45, 7.95, 8.5, 8.96, 9.49, 10.0, 10.47, 10.96, 11.47, 11.96, 12.46, 12.95, 13.46, 13.98, 14.49, 15.02, 15.51, 16.02, 15.99, 17.0, 17.52, 18.05, 18.51, 19.06, 19.51, 20.05, 20.54, 21.1, 21.56, 22.06, 22.52, 23.02, 23.54, 24.04, 24.58, 25.08, 25.6, 26.04, 26.51, 27.05, 27.55, 28.05, 28.55, 29.04, 29.55, 30.04, 30.59, 30.99, 31.48, 32.03, 32.5, 33.03, 33.49, 34.02, 34.49, 35.08]}, "id": "6082787d-e945-459d-ad6d-a450d54bc3b9"}, "type": "ColumnDataSource", "id": "6082787d-e945-459d-ad6d-a450d54bc3b9"}, {"attributes": {"sources": [{"source": {"type": "ColumnDataSource", "id": "baf2c186-cb0e-4ab5-b2b0-1685a6fca1be"}, "columns": ["Day"]}, {"source": {"type": "ColumnDataSource", "id": "6082787d-e945-459d-ad6d-a450d54bc3b9"}, "columns": ["x"]}], "id": "89ce869a-347d-43f9-b626-aa9500781926", "doc": null}, "type": "DataRange1d", "id": "89ce869a-347d-43f9-b626-aa9500781926"}, {"attributes": {"column_names": ["x", "y"], "doc": null, "selected": [], "discrete_ranges": {}, "cont_ranges": {}, "data": {"y": [5.76, 9.05, 17.26, 41.97, 55.97, 74.91, 62.52, 27.04, 18.77, 31.11, 58.31, 73.13, 63.21, 52.46, 40.07, 27.67, 26.0, 24.32, 21.0, 33.35, 64.67, 94.34, 103.4, 82.74, 65.4, 51.35, 28.24, 23.27, 38.09, 14.97, 24.84, 49.56, 75.93, 104.0, 106.4, 100.6, 84.08, 45.3, 35.37, 35.35, 41.1, 52.62, 120.2, 112.8, 92.14, 65.72, 33.54, 21.14, 17.82, 26.04, 65.61, 76.3, 96.07, 68.84, 54.79, 35.8, 32.48, 24.21, 35.73, 55.5, 93.41, 117.3, 95.02, 85.92, 82.6, 66.08, 63.58, 37.99, 25.6, 23.1, 37.09], "x": ["NaN", 5.76, 9.05, 17.26, 41.97, 55.97, 74.91, 62.52, 27.04, 18.77, 31.11, 58.31, 73.13, 63.21, 52.46, 40.07, 27.67, 26.0, 24.32, 21.0, 33.35, 64.67, 94.34, 103.4, 82.74, 65.4, 51.35, 28.24, 23.27, 38.09, 14.97, 24.84, 49.56, 75.93, 104.0, 106.4, 100.6, 84.08, 45.3, 35.37, 35.35, 41.1, 52.62, 120.2, 112.8, 92.14, 65.72, 33.54, 21.14, 17.82, 26.04, 65.61, 76.3, 96.07, 68.84, 54.79, 35.8, 32.48, 24.21, 35.73, 55.5, 93.41, 117.3, 95.02, 85.92, 82.6, 66.08, 63.58, 37.99, 25.6, 23.1]}, "id": "cb28e100-ad95-4964-bf68-989cba7c6f6d"}, "type": "ColumnDataSource", "id": "cb28e100-ad95-4964-bf68-989cba7c6f6d"}, {"attributes": {"sources": [{"source": {"type": "ColumnDataSource", "id": "baf2c186-cb0e-4ab5-b2b0-1685a6fca1be"}, "columns": ["y_lag"]}, {"source": {"type": "ColumnDataSource", "id": "cb28e100-ad95-4964-bf68-989cba7c6f6d"}, "columns": ["x"]}], "id": "9ed24edc-ba1d-421e-a605-972ff25e666a", "doc": null}, "type": "DataRange1d", "id": "9ed24edc-ba1d-421e-a605-972ff25e666a"}, {"attributes": {"sources": [{"source": {"type": "ColumnDataSource", "id": "baf2c186-cb0e-4ab5-b2b0-1685a6fca1be"}, "columns": ["y"]}, {"source": {"type": "ColumnDataSource", "id": "cb28e100-ad95-4964-bf68-989cba7c6f6d"}, "columns": ["y"]}], "id": "e4fbae04-e89d-4627-b8f2-afd73e778ffc", "doc": null}, "type": "DataRange1d", "id": "e4fbae04-e89d-4627-b8f2-afd73e778ffc"}, {"attributes": {"doc": null, "id": "43c4288e-8bb3-4770-bde1-11797f3c5387"}, "type": "BasicTickFormatter", "id": "43c4288e-8bb3-4770-bde1-11797f3c5387"}, {"attributes": {"doc": null, "id": "53adf5c0-556a-4897-9e39-919aceea62da"}, "type": "BasicTicker", "id": "53adf5c0-556a-4897-9e39-919aceea62da"}, {"attributes": {"plot": {"type": "Plot", "id": "dbf2c78d-2e80-4c93-8269-6370e9a99c18"}, "doc": null, "bounds": "auto", "id": "9b990d89-3c4e-4261-ad4f-df25ff27ab85", "location": "min", "formatter": {"type": "BasicTickFormatter", "id": "43c4288e-8bb3-4770-bde1-11797f3c5387"}, "ticker": {"type": "BasicTicker", "id": "53adf5c0-556a-4897-9e39-919aceea62da"}, "dimension": 0}, "type": "LinearAxis", "id": "9b990d89-3c4e-4261-ad4f-df25ff27ab85"}, {"attributes": {"plot": {"type": "Plot", "id": "dbf2c78d-2e80-4c93-8269-6370e9a99c18"}, "doc": null, "axis": {"type": "LinearAxis", "id": "9b990d89-3c4e-4261-ad4f-df25ff27ab85"}, "id": "81a2cec9-3921-4e06-8783-4ed9e69bf7fa", "dimension": 0}, "type": "Grid", "id": "81a2cec9-3921-4e06-8783-4ed9e69bf7fa"}, {"attributes": {"plot": {"type": "Plot", "id": "dbf2c78d-2e80-4c93-8269-6370e9a99c18"}, "doc": null, "axis": {"type": "LinearAxis", "id": "ead9c287-b2d0-487f-a62a-33560411a623"}, "id": "afe7ec07-90d1-4ac3-90fa-3ff182eda637", "dimension": 1}, "type": "Grid", "id": "afe7ec07-90d1-4ac3-90fa-3ff182eda637"}, {"attributes": {"plot": {"type": "Plot", "id": "dbf2c78d-2e80-4c93-8269-6370e9a99c18"}, "id": "17a16cc8-4bb6-419e-b51d-8fcde8305468", "doc": null}, "type": "BoxZoomTool", "id": "17a16cc8-4bb6-419e-b51d-8fcde8305468"}, {"attributes": {"doc": null, "tool": {"type": "BoxZoomTool", "id": "17a16cc8-4bb6-419e-b51d-8fcde8305468"}, "id": "a98246aa-430b-431e-8035-eb90ed3e173a"}, "type": "BoxSelection", "id": "a98246aa-430b-431e-8035-eb90ed3e173a"}, {"attributes": {"data_source": {"type": "ColumnDataSource", "id": "baf2c186-cb0e-4ab5-b2b0-1685a6fca1be"}, "server_data_source": null, "doc": null, "nonselection_glyphspec": {"line_color": {"value": "#1f77b4"}, "angle_units": "deg", "fill_color": {"value": "#1f77b4"}, "visible": null, "line_dash_offset": 0, "line_join": "miter", "size": {"units": "screen", "value": 6}, "line_alpha": {"units": "data", "value": 0.1}, "radius_units": "screen", "end_angle_units": "deg", "valign": null, "length_units": "screen", "start_angle_units": "deg", "line_cap": "butt", "line_dash": [], "line_width": {"units": "data", "value": 0}, "type": "circle", "fill_alpha": {"units": "data", "value": 0.1}, "halign": null, "y": {"units": "data", "field": "y"}, "x": {"units": "data", "field": "y_lag"}, "margin": null}, "xdata_range": null, "ydata_range": null, "glyphspec": {"line_color": {"value": "#fa8e63"}, "line_width": {"units": "data", "value": 0}, "fill_color": {"value": "#fa8e63"}, "line_alpha": {"units": "data", "value": 1.0}, "fill_alpha": {"units": "data", "value": 1.0}, "y": {"units": "data", "field": "y"}, "x": {"units": "data", "field": "y_lag"}, "type": "circle", "size": {"units": "screen", "value": 6}}, "id": "16122b6e-b392-467f-9ec3-c2fe5f3a0d55"}, "type": "Glyph", "id": "16122b6e-b392-467f-9ec3-c2fe5f3a0d55"}, {"attributes": {"data_source": {"type": "ColumnDataSource", "id": "cb28e100-ad95-4964-bf68-989cba7c6f6d"}, "server_data_source": null, "doc": null, "nonselection_glyphspec": {"line_color": {"value": "#1f77b4"}, "line_width": {"units": "data", "value": 2.5}, "angle_units": "deg", "type": "line", "y": {"units": "data", "field": "y"}, "x": {"units": "data", "field": "x"}, "line_alpha": {"units": "data", "value": 0.1}, "start_angle_units": "deg", "valign": null, "radius_units": "screen", "visible": null, "end_angle_units": "deg", "line_dash_offset": 0, "line_cap": "butt", "line_dash": [], "length_units": "screen", "margin": null, "line_join": "miter", "halign": null}, "xdata_range": null, "ydata_range": null, "glyphspec": {"line_color": {"value": "#fa8e63"}, "line_width": {"units": "data", "value": 2.5}, "line_alpha": {"units": "data", "value": 0.3}, "y": {"units": "data", "field": "y"}, "x": {"units": "data", "field": "x"}, "type": "line"}, "id": "fcda6215-2bab-4cfd-9789-81871d39cc59"}, "type": "Glyph", "id": "fcda6215-2bab-4cfd-9789-81871d39cc59"}, {"attributes": {"plot": null, "doc": null, "renderers": [{"type": "Glyph", "id": "16122b6e-b392-467f-9ec3-c2fe5f3a0d55"}, {"type": "Glyph", "id": "fcda6215-2bab-4cfd-9789-81871d39cc59"}], "id": "e7b66930-a986-4560-828c-64f689f90c75"}, "type": "BoxSelectTool", "id": "e7b66930-a986-4560-828c-64f689f90c75"}, {"attributes": {"doc": null, "tool": {"type": "BoxSelectTool", "id": "e7b66930-a986-4560-828c-64f689f90c75"}, "id": "ccf22ad1-df13-49bf-9a66-953b2da7d276"}, "type": "BoxSelection", "id": "ccf22ad1-df13-49bf-9a66-953b2da7d276"}, {"attributes": {"plot": {"type": "Plot", "id": "dbf2c78d-2e80-4c93-8269-6370e9a99c18"}, "dimensions": ["width", "height"], "doc": null, "id": "ca542de4-1c28-4a47-88ae-9a5cc8b11f30"}, "type": "PanTool", "id": "ca542de4-1c28-4a47-88ae-9a5cc8b11f30"}, {"attributes": {"plot": {"type": "Plot", "id": "dbf2c78d-2e80-4c93-8269-6370e9a99c18"}, "dimensions": ["width", "height"], "doc": null, "id": "3f9f2a11-75a2-4834-afac-ccecc0d547f7"}, "type": "WheelZoomTool", "id": "3f9f2a11-75a2-4834-afac-ccecc0d547f7"}, {"attributes": {"plot": {"type": "Plot", "id": "dbf2c78d-2e80-4c93-8269-6370e9a99c18"}, "id": "4cbcca27-ce3a-4588-9ef8-4df25ee46f32", "doc": null}, "type": "ResetTool", "id": "4cbcca27-ce3a-4588-9ef8-4df25ee46f32"}, {"attributes": {"plot": {"type": "Plot", "id": "dbf2c78d-2e80-4c93-8269-6370e9a99c18"}, "id": "73f894fe-4ec4-47e4-9549-e419f1545f8a", "doc": null}, "type": "PreviewSaveTool", "id": "73f894fe-4ec4-47e4-9549-e419f1545f8a"}, {"attributes": {"outer_height": 600, "x_range": {"type": "DataRange1d", "id": "9ed24edc-ba1d-421e-a605-972ff25e666a"}, "y_range": {"type": "DataRange1d", "id": "e4fbae04-e89d-4627-b8f2-afd73e778ffc"}, "outer_width": 600, "renderers": [{"type": "LinearAxis", "id": "9b990d89-3c4e-4261-ad4f-df25ff27ab85"}, {"type": "Grid", "id": "81a2cec9-3921-4e06-8783-4ed9e69bf7fa"}, {"type": "LinearAxis", "id": "ead9c287-b2d0-487f-a62a-33560411a623"}, {"type": "Grid", "id": "afe7ec07-90d1-4ac3-90fa-3ff182eda637"}, {"type": "BoxSelection", "id": "a98246aa-430b-431e-8035-eb90ed3e173a"}, {"type": "BoxSelection", "id": "ccf22ad1-df13-49bf-9a66-953b2da7d276"}, {"type": "Glyph", "id": "16122b6e-b392-467f-9ec3-c2fe5f3a0d55"}, {"type": "Glyph", "id": "fcda6215-2bab-4cfd-9789-81871d39cc59"}], "id": "dbf2c78d-2e80-4c93-8269-6370e9a99c18", "data_sources": [], "doc": null, "canvas_height": 600, "title": "Reconstructed Manifold (Didinium)", "tools": [{"type": "PanTool", "id": "ca542de4-1c28-4a47-88ae-9a5cc8b11f30"}, {"type": "WheelZoomTool", "id": "3f9f2a11-75a2-4834-afac-ccecc0d547f7"}, {"type": "BoxZoomTool", "id": "17a16cc8-4bb6-419e-b51d-8fcde8305468"}, {"type": "ResetTool", "id": "4cbcca27-ce3a-4588-9ef8-4df25ee46f32"}, {"type": "PreviewSaveTool", "id": "73f894fe-4ec4-47e4-9549-e419f1545f8a"}, {"type": "BoxSelectTool", "id": "e7b66930-a986-4560-828c-64f689f90c75"}], "canvas_width": 600}, "type": "Plot", "id": "dbf2c78d-2e80-4c93-8269-6370e9a99c18"}, {"attributes": {"doc": null, "id": "b9eb8fc8-242e-4277-915a-cbe1288a73f7"}, "type": "BasicTickFormatter", "id": "b9eb8fc8-242e-4277-915a-cbe1288a73f7"}, {"attributes": {"doc": null, "id": "4a9f99ce-0005-412c-a8c4-44ddd5561093"}, "type": "BasicTicker", "id": "4a9f99ce-0005-412c-a8c4-44ddd5561093"}, {"attributes": {"plot": {"type": "Plot", "id": "dbf2c78d-2e80-4c93-8269-6370e9a99c18"}, "doc": null, "bounds": "auto", "id": "ead9c287-b2d0-487f-a62a-33560411a623", "location": "min", "formatter": {"type": "BasicTickFormatter", "id": "b9eb8fc8-242e-4277-915a-cbe1288a73f7"}, "ticker": {"type": "BasicTicker", "id": "4a9f99ce-0005-412c-a8c4-44ddd5561093"}, "dimension": 1}, "type": "LinearAxis", "id": "ead9c287-b2d0-487f-a62a-33560411a623"}, {"attributes": {"sources": [{"source": {"type": "ColumnDataSource", "id": "baf2c186-cb0e-4ab5-b2b0-1685a6fca1be"}, "columns": ["y"]}, {"source": {"type": "ColumnDataSource", "id": "6082787d-e945-459d-ad6d-a450d54bc3b9"}, "columns": ["y"]}], "id": "716d906a-63dd-412b-979b-c23d7fb9e1bc", "doc": null}, "type": "DataRange1d", "id": "716d906a-63dd-412b-979b-c23d7fb9e1bc"}, {"attributes": {"doc": null, "id": "e7ff4a4b-f08f-47d7-b474-336d579eb51f"}, "type": "BasicTickFormatter", "id": "e7ff4a4b-f08f-47d7-b474-336d579eb51f"}, {"attributes": {"doc": null, "id": "95622a2f-ba17-4bc1-9ed2-a4faf985dad1"}, "type": "BasicTicker", "id": "95622a2f-ba17-4bc1-9ed2-a4faf985dad1"}, {"attributes": {"plot": {"type": "Plot", "id": "c715618f-fa86-474a-a7f8-0b3622595f6e"}, "doc": null, "bounds": "auto", "id": "979db9ed-ea79-4210-9519-ac3d23a2ec0e", "location": "min", "axis_label": "Day", "formatter": {"type": "BasicTickFormatter", "id": "e7ff4a4b-f08f-47d7-b474-336d579eb51f"}, "ticker": {"type": "BasicTicker", "id": "95622a2f-ba17-4bc1-9ed2-a4faf985dad1"}, "dimension": 0}, "type": "LinearAxis", "id": "979db9ed-ea79-4210-9519-ac3d23a2ec0e"}, {"attributes": {"plot": {"type": "Plot", "id": "c715618f-fa86-474a-a7f8-0b3622595f6e"}, "doc": null, "axis": {"type": "LinearAxis", "id": "979db9ed-ea79-4210-9519-ac3d23a2ec0e"}, "id": "2b43d5ba-b7b5-489d-b561-ae7890e06a43", "dimension": 0}, "type": "Grid", "id": "2b43d5ba-b7b5-489d-b561-ae7890e06a43"}, {"attributes": {"doc": null, "id": "b43f3eb1-c3aa-457d-bde7-f9dab26d4b6b"}, "type": "BasicTickFormatter", "id": "b43f3eb1-c3aa-457d-bde7-f9dab26d4b6b"}, {"attributes": {"plot": {"type": "Plot", "id": "c715618f-fa86-474a-a7f8-0b3622595f6e"}, "doc": null, "bounds": "auto", "id": "45a05206-d8b7-46c1-b981-312d45e18499", "location": "min", "axis_label": "Abundance", "formatter": {"type": "BasicTickFormatter", "id": "b43f3eb1-c3aa-457d-bde7-f9dab26d4b6b"}, "ticker": {"type": "BasicTicker", "id": "e551ecc9-0ec3-466b-8ff1-adbec8fde892"}, "dimension": 1}, "type": "LinearAxis", "id": "45a05206-d8b7-46c1-b981-312d45e18499"}, {"attributes": {"plot": {"type": "Plot", "id": "c715618f-fa86-474a-a7f8-0b3622595f6e"}, "doc": null, "axis": {"type": "LinearAxis", "id": "45a05206-d8b7-46c1-b981-312d45e18499"}, "id": "505e4752-4daf-4afd-95bf-498f20657f91", "dimension": 1}, "type": "Grid", "id": "505e4752-4daf-4afd-95bf-498f20657f91"}, {"attributes": {"plot": {"type": "Plot", "id": "c715618f-fa86-474a-a7f8-0b3622595f6e"}, "id": "58b22916-90dd-4bfa-a14e-52b6e6fd0cf8", "doc": null}, "type": "BoxZoomTool", "id": "58b22916-90dd-4bfa-a14e-52b6e6fd0cf8"}, {"attributes": {"doc": null, "tool": {"type": "BoxZoomTool", "id": "58b22916-90dd-4bfa-a14e-52b6e6fd0cf8"}, "id": "4d4741d0-f98b-40af-b99f-e2e2ed7ebc9d"}, "type": "BoxSelection", "id": "4d4741d0-f98b-40af-b99f-e2e2ed7ebc9d"}, {"attributes": {"data_source": {"type": "ColumnDataSource", "id": "baf2c186-cb0e-4ab5-b2b0-1685a6fca1be"}, "server_data_source": null, "doc": null, "nonselection_glyphspec": {"line_color": {"value": "#1f77b4"}, "angle_units": "deg", "fill_color": {"value": "#1f77b4"}, "visible": null, "line_dash_offset": 0, "line_join": "miter", "size": {"units": "screen", "value": 6}, "line_alpha": {"units": "data", "value": 0.1}, "radius_units": "screen", "end_angle_units": "deg", "valign": null, "length_units": "screen", "start_angle_units": "deg", "line_cap": "butt", "line_dash": [], "line_width": {"units": "data", "value": 0}, "type": "circle", "fill_alpha": {"units": "data", "value": 0.1}, "halign": null, "y": {"units": "data", "field": "y"}, "x": {"units": "data", "field": "Day"}, "margin": null}, "xdata_range": null, "ydata_range": null, "glyphspec": {"line_color": {"value": "#fa8e63"}, "line_width": {"units": "data", "value": 0}, "fill_color": {"value": "#fa8e63"}, "line_alpha": {"units": "data", "value": 1.0}, "fill_alpha": {"units": "data", "value": 1.0}, "y": {"units": "data", "field": "y"}, "x": {"units": "data", "field": "Day"}, "type": "circle", "size": {"units": "screen", "value": 6}}, "id": "34d81270-f7c1-4b35-bf69-db1c9b988026"}, "type": "Glyph", "id": "34d81270-f7c1-4b35-bf69-db1c9b988026"}, {"attributes": {"data_source": {"type": "ColumnDataSource", "id": "6082787d-e945-459d-ad6d-a450d54bc3b9"}, "server_data_source": null, "doc": null, "nonselection_glyphspec": {"line_color": {"value": "#1f77b4"}, "line_width": {"units": "data", "value": 2.5}, "angle_units": "deg", "type": "line", "y": {"units": "data", "field": "y"}, "x": {"units": "data", "field": "x"}, "line_alpha": {"units": "data", "value": 0.1}, "start_angle_units": "deg", "valign": null, "radius_units": "screen", "visible": null, "end_angle_units": "deg", "line_dash_offset": 0, "line_cap": "butt", "line_dash": [], "length_units": "screen", "margin": null, "line_join": "miter", "halign": null}, "xdata_range": null, "ydata_range": null, "glyphspec": {"line_color": {"value": "#fa8e63"}, "line_width": {"units": "data", "value": 2.5}, "line_alpha": {"units": "data", "value": 0.3}, "y": {"units": "data", "field": "y"}, "x": {"units": "data", "field": "x"}, "type": "line"}, "id": "4ccf0b2b-10ee-41ba-acb3-028aa28d35e5"}, "type": "Glyph", "id": "4ccf0b2b-10ee-41ba-acb3-028aa28d35e5"}, {"attributes": {"plot": null, "doc": null, "renderers": [{"type": "Glyph", "id": "34d81270-f7c1-4b35-bf69-db1c9b988026"}, {"type": "Glyph", "id": "4ccf0b2b-10ee-41ba-acb3-028aa28d35e5"}], "id": "17cdd536-58e6-4d6d-b604-79f1f98107d3"}, "type": "BoxSelectTool", "id": "17cdd536-58e6-4d6d-b604-79f1f98107d3"}, {"attributes": {"doc": null, "tool": {"type": "BoxSelectTool", "id": "17cdd536-58e6-4d6d-b604-79f1f98107d3"}, "id": "e5fedfbe-1b03-4e6e-817c-7f85aa77bcfd"}, "type": "BoxSelection", "id": "e5fedfbe-1b03-4e6e-817c-7f85aa77bcfd"}, {"attributes": {"plot": {"type": "Plot", "id": "c715618f-fa86-474a-a7f8-0b3622595f6e"}, "dimensions": ["width", "height"], "doc": null, "id": "6a91a632-97dc-4a8a-b13b-d109fc8237be"}, "type": "PanTool", "id": "6a91a632-97dc-4a8a-b13b-d109fc8237be"}, {"attributes": {"plot": {"type": "Plot", "id": "c715618f-fa86-474a-a7f8-0b3622595f6e"}, "dimensions": ["width", "height"], "doc": null, "id": "6aa5e9fb-b667-4777-81a7-1ca572e165f2"}, "type": "WheelZoomTool", "id": "6aa5e9fb-b667-4777-81a7-1ca572e165f2"}, {"attributes": {"plot": {"type": "Plot", "id": "c715618f-fa86-474a-a7f8-0b3622595f6e"}, "id": "9ecda5a0-7b3e-4145-9f45-7f1ed6b4dae3", "doc": null}, "type": "PreviewSaveTool", "id": "9ecda5a0-7b3e-4145-9f45-7f1ed6b4dae3"}, {"attributes": {"outer_height": 600, "x_range": {"type": "DataRange1d", "id": "89ce869a-347d-43f9-b626-aa9500781926"}, "y_range": {"type": "DataRange1d", "id": "716d906a-63dd-412b-979b-c23d7fb9e1bc"}, "outer_width": 600, "renderers": [{"type": "LinearAxis", "id": "979db9ed-ea79-4210-9519-ac3d23a2ec0e"}, {"type": "Grid", "id": "2b43d5ba-b7b5-489d-b561-ae7890e06a43"}, {"type": "LinearAxis", "id": "45a05206-d8b7-46c1-b981-312d45e18499"}, {"type": "Grid", "id": "505e4752-4daf-4afd-95bf-498f20657f91"}, {"type": "BoxSelection", "id": "4d4741d0-f98b-40af-b99f-e2e2ed7ebc9d"}, {"type": "BoxSelection", "id": "e5fedfbe-1b03-4e6e-817c-7f85aa77bcfd"}, {"type": "Glyph", "id": "34d81270-f7c1-4b35-bf69-db1c9b988026"}, {"type": "Glyph", "id": "4ccf0b2b-10ee-41ba-acb3-028aa28d35e5"}], "id": "c715618f-fa86-474a-a7f8-0b3622595f6e", "data_sources": [], "doc": null, "canvas_height": 600, "title": "Time Series (Didinium)", "tools": [{"type": "PanTool", "id": "6a91a632-97dc-4a8a-b13b-d109fc8237be"}, {"type": "WheelZoomTool", "id": "6aa5e9fb-b667-4777-81a7-1ca572e165f2"}, {"type": "BoxZoomTool", "id": "58b22916-90dd-4bfa-a14e-52b6e6fd0cf8"}, {"type": "ResetTool", "id": "f28c488d-b3f3-49ae-8587-2be18cb1e6d3"}, {"type": "PreviewSaveTool", "id": "9ecda5a0-7b3e-4145-9f45-7f1ed6b4dae3"}, {"type": "BoxSelectTool", "id": "17cdd536-58e6-4d6d-b604-79f1f98107d3"}], "canvas_width": 600}, "type": "Plot", "id": "c715618f-fa86-474a-a7f8-0b3622595f6e"}, {"attributes": {"plot": {"type": "Plot", "id": "c715618f-fa86-474a-a7f8-0b3622595f6e"}, "id": "f28c488d-b3f3-49ae-8587-2be18cb1e6d3", "doc": null}, "type": "ResetTool", "id": "f28c488d-b3f3-49ae-8587-2be18cb1e6d3"}, {"attributes": {"outer_height": 600, "x_range": null, "tools": [], "outer_width": 600, "renderers": [], "canvas_width": 600, "data_sources": [], "doc": null, "canvas_height": 600, "id": "8eb46d9b-0e4e-4978-9a20-0fb6d4311ea1", "y_range": null, "children": [[{"type": "Plot", "id": "f36e567d-ee0e-48f8-8f1e-598c6c290480"}, {"type": "Plot", "id": "c715618f-fa86-474a-a7f8-0b3622595f6e"}], [{"type": "Plot", "id": "5a38359c-475e-4c33-9f46-484e4e51f1e3"}, {"type": "Plot", "id": "dbf2c78d-2e80-4c93-8269-6370e9a99c18"}], [{"type": "Plot", "id": "6d05e0f8-fe0f-45ac-96fa-4488013c49ee"}, {"type": "Plot", "id": "6d05e0f8-fe0f-45ac-96fa-4488013c49ee"}]]}, "type": "GridPlot", "id": "8eb46d9b-0e4e-4978-9a20-0fb6d4311ea1"}, {"attributes": {"doc": null, "children": [{"type": "GridPlot", "id": "8eb46d9b-0e4e-4978-9a20-0fb6d4311ea1"}], "id": "3d9b547b-77be-490d-a9aa-0912d1cb1eb0"}, "type": "PlotContext", "id": "3d9b547b-77be-490d-a9aa-0912d1cb1eb0"}];
                var modelid = "3d9b547b-77be-490d-a9aa-0912d1cb1eb0";
                var modeltype = "PlotContext";
                var elementid = "9579781b-adeb-4ecc-ba5c-18c6d73b9e29";
                console.log(modelid, modeltype, elementid);
                Bokeh.load_models(all_models);
                var model = Bokeh.Collections(modeltype).get(modelid);
                var view = new model.default_view({model: model, el: '#9579781b-adeb-4ecc-ba5c-18c6d73b9e29'});
            });
        </script>
    </head>
    <body>
        <div class="plotdiv" id="9579781b-adeb-4ecc-ba5c-18c6d73b9e29">Plots</div>
    </body>
</html>